PasteFerry (隔空贴): clipboard and file sync across macOS, Windows and Linux. Direct-first, end-to-end encrypted. Optional official access: no server to host. Independent self-hosting remains available.
Dart airdrop-alternativeclipboardclipboard-sharingclipboard-synccopy-pastecross-platformend-to-end-encryptionfile-syncfile-transferfluttergolanglinuxmacosnat-traversalp2pself-hostedtailscaleuniversal-clipboardwebrtcwindows
chore: merge latest main into official service work
baiyuzec5503bd27ae2
diff --cc client-core/go.modindex ae390c6,249dff3..227ee8b--- a/client-core/go.mod+++ b/client-core/go.mod@@@ -49,19 -44,17 +49,20 @@@ replace github.com/baiyuze/pasteferry/prequire (github.com/baiyuze/pasteferry/server v0.0.0+ github.com/godbus/dbus/v5 v5.2.2github.com/jezek/xgb v1.3.1github.com/klauspost/compress v1.20.0- github.com/pion/ice/v4 v4.4.2+ github.com/pion/ice/v4 v4.4.7github.com/pion/logging v0.2.4- github.com/pion/mdns/v2 v2.2.0- github.com/pion/stun/v4 v4.0.0- github.com/pion/webrtc/v4 v4.2.20- golang.org/x/net v0.57.0- golang.org/x/sys v0.47.0- golang.org/x/text v0.40.0+ github.com/pion/mdns/v2 v2.2.2+ github.com/pion/stun/v4 v4.0.1+ github.com/pion/transport/v5 v5.1.1+ github.com/pion/turn/v5 v5.1.2+ github.com/pion/webrtc/v4 v4.2.23+ github.com/shirou/gopsutil/v4 v4.26.9+ golang.org/x/net v0.60.0+ golang.org/x/sys v0.48.0+ golang.org/x/text v0.42.0)replace github.com/baiyuze/pasteferry/server => ../serverdiff --cc client-core/go.sumindex 266c7a8,09434c4..5890e05--- a/client-core/go.sum+++ b/client-core/go.sum@@@ -2,13 -2,10 +2,15 @@@ github.com/coder/websocket v1.8.15 h1:6github.com/coder/websocket v1.8.15/go.mod h1:NX3SzP+inril6yawo5CQXx8+fk145lPDC6pumgx0mVg=github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=+github.com/ebitengine/purego v0.11.1 h1:2zpWRSQNVKN4eKsKO9eM1ILDgWfYMY9GwqRmK6XeQ/0=+github.com/ebitengine/purego v0.11.1/go.mod h1:DCHPP08djqhNSoTfImcnHYQRZmd0qhakvrozqaEYhGQ=+github.com/go-ole/go-ole v1.2.6 h1:/Fpf6oFPoeFik9ty7siob0G6Ke8QvQEuVcuChpwXzpY=+github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0=+ github.com/godbus/dbus/v5 v5.2.2 h1:TUR3TgtSVDmjiXOgAAyaZbYmIeP3DPkld3jgKGV8mXQ=+ github.com/godbus/dbus/v5 v5.2.2/go.mod h1:3AAv2+hPq5rdnr5txxxRwiGjPXamgoIHgz9FPBfOp3c=github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=+github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=github.com/google/pprof v0.0.0-20260802141513-ef3492d7dac3 h1:LMLX+LgTNWpfvCBdFebv6EsYotImrt/Ppc5cXIriCSo=diff --cc client-core/internal/rpc/server.goindex 39b2260,f53d117..851ce77--- a/client-core/internal/rpc/server.go+++ b/client-core/internal/rpc/server.go@@@ -73,7 -73,33 +73,34 @@@ type Deps struct// OpenLocalNetworkSettings 让系统放行局域网访问(macOS 打开设置面板,Windows 放行防火墙)OpenLocalNetworkSettings func() errorCacheBytesUsed func() int64+ OfficialUsage func() *pb.OfficialUsage+ NotificationStatus func(context.Context) (*pb.NotificationStatus, error)+ RequestNotifications func(context.Context) (*pb.NotificationStatus, error)+ ActivateNotification func(context.Context, string, string) error+ }++ func (s *Server) GetNotificationStatus(ctx context.Context, _ *pb.Empty) (*pb.NotificationStatus, error) {+ if s.deps.NotificationStatus == nil {+ return &pb.NotificationStatus{Permission: "unavailable"}, nil+ }+ return s.deps.NotificationStatus(ctx)+ }++ func (s *Server) RequestNotificationPermission(ctx context.Context, _ *pb.Empty) (*pb.NotificationStatus, error) {+ if s.deps.RequestNotifications == nil {+ return &pb.NotificationStatus{Permission: "unavailable"}, nil+ }+ return s.deps.RequestNotifications(ctx)+ }++ func (s *Server) ActivateNotification(ctx context.Context, req *pb.NotificationAction) (*pb.Empty, error) {+ if s.deps.ActivateNotification == nil {+ return nil, status.Error(codes.Unimplemented, "Notifications unavailable")+ }+ if err := s.deps.ActivateNotification(ctx, req.GetClipId(), req.GetAction()); err != nil {+ return nil, status.Error(codes.FailedPrecondition, err.Error())+ }+ return &pb.Empty{}, nil}type Server struct {diff --cc proto/gen/pasteferry/v1/daemon.pb.goindex 687207c,c33370d..b7a2599--- a/proto/gen/pasteferry/v1/daemon.pb.go+++ b/proto/gen/pasteferry/v1/daemon.pb.go@@@ -251,58 -251,58 +251,110 @@@ func (ClipboardPermission) EnumDescriptreturn file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{3}}+ type ClipboardWriteOutcome int32++ const (+ ClipboardWriteOutcome_CLIPBOARD_WRITE_OUTCOME_UNSPECIFIED ClipboardWriteOutcome = 0+ ClipboardWriteOutcome_CLIPBOARD_WRITE_OUTCOME_APPLIED ClipboardWriteOutcome = 1+ ClipboardWriteOutcome_CLIPBOARD_WRITE_OUTCOME_PRESERVED ClipboardWriteOutcome = 2+ ClipboardWriteOutcome_CLIPBOARD_WRITE_OUTCOME_FAILED ClipboardWriteOutcome = 3+ )++ // Enum value maps for ClipboardWriteOutcome.+ var (+ ClipboardWriteOutcome_name = map[int32]string{+ 0: "CLIPBOARD_WRITE_OUTCOME_UNSPECIFIED",+ 1: "CLIPBOARD_WRITE_OUTCOME_APPLIED",+ 2: "CLIPBOARD_WRITE_OUTCOME_PRESERVED",+ 3: "CLIPBOARD_WRITE_OUTCOME_FAILED",+ }+ ClipboardWriteOutcome_value = map[string]int32{+ "CLIPBOARD_WRITE_OUTCOME_UNSPECIFIED": 0,+ "CLIPBOARD_WRITE_OUTCOME_APPLIED": 1,+ "CLIPBOARD_WRITE_OUTCOME_PRESERVED": 2,+ "CLIPBOARD_WRITE_OUTCOME_FAILED": 3,+ }+ )++ func (x ClipboardWriteOutcome) Enum() *ClipboardWriteOutcome {+ p := new(ClipboardWriteOutcome)+ *p = x+ return p+ }++ func (x ClipboardWriteOutcome) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+ }++ func (ClipboardWriteOutcome) Descriptor() protoreflect.EnumDescriptor {+ return file_pasteferry_v1_daemon_proto_enumTypes[4].Descriptor()+ }++ func (ClipboardWriteOutcome) Type() protoreflect.EnumType {+ return &file_pasteferry_v1_daemon_proto_enumTypes[4]+ }++ func (x ClipboardWriteOutcome) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+ }++ // Deprecated: Use ClipboardWriteOutcome.Descriptor instead.+ func (ClipboardWriteOutcome) EnumDescriptor() ([]byte, []int) {+ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{4}+ }++type ServiceMode int32++const (+ ServiceMode_SERVICE_MODE_UNSPECIFIED ServiceMode = 0+ ServiceMode_SERVICE_MODE_LAN ServiceMode = 1+ ServiceMode_SERVICE_MODE_OFFICIAL ServiceMode = 2+ ServiceMode_SERVICE_MODE_CUSTOM ServiceMode = 3+)++// Enum value maps for ServiceMode.+var (+ ServiceMode_name = map[int32]string{+ 0: "SERVICE_MODE_UNSPECIFIED",+ 1: "SERVICE_MODE_LAN",+ 2: "SERVICE_MODE_OFFICIAL",+ 3: "SERVICE_MODE_CUSTOM",+ }+ ServiceMode_value = map[string]int32{+ "SERVICE_MODE_UNSPECIFIED": 0,+ "SERVICE_MODE_LAN": 1,+ "SERVICE_MODE_OFFICIAL": 2,+ "SERVICE_MODE_CUSTOM": 3,+ }+)++func (x ServiceMode) Enum() *ServiceMode {+ p := new(ServiceMode)+ *p = x+ return p+}++func (x ServiceMode) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (ServiceMode) Descriptor() protoreflect.EnumDescriptor {- return file_pasteferry_v1_daemon_proto_enumTypes[4].Descriptor()++ return file_pasteferry_v1_daemon_proto_enumTypes[5].Descriptor()+}++func (ServiceMode) Type() protoreflect.EnumType {- return &file_pasteferry_v1_daemon_proto_enumTypes[4]++ return &file_pasteferry_v1_daemon_proto_enumTypes[5]+}++func (x ServiceMode) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use ServiceMode.Descriptor instead.+func (ServiceMode) EnumDescriptor() ([]byte, []int) {- return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{4}++ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{5}+}+type Empty struct {state protoimpl.MessageState `protogen:"open.v1"`unknownFields protoimpl.UnknownFields@@@ -1885,143 -2071,6 +2127,143 @@@ func (x *Config) GetLanDisabled() boolreturn false}+func (x *Config) GetServiceMode() ServiceMode {+ if x != nil {+ return x.ServiceMode+ }+ return ServiceMode_SERVICE_MODE_UNSPECIFIED+}++func (x *Config) GetCustomSignalingUrl() string {+ if x != nil {+ return x.CustomSignalingUrl+ }+ return ""+}++func (x *Config) GetOfficialNoticeAck() string {+ if x != nil {+ return x.OfficialNoticeAck+ }+ return ""+}++type OfficialUsage struct {+ state protoimpl.MessageState `protogen:"open.v1"`+ Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"`+ Day string `protobuf:"bytes,2,opt,name=day,proto3" json:"day,omitempty"`+ QuotaGroup string `protobuf:"bytes,3,opt,name=quota_group,json=quotaGroup,proto3" json:"quota_group,omitempty"`+ UploadBytes int64 `protobuf:"varint,4,opt,name=upload_bytes,json=uploadBytes,proto3" json:"upload_bytes,omitempty"`+ DownloadBytes int64 `protobuf:"varint,5,opt,name=download_bytes,json=downloadBytes,proto3" json:"download_bytes,omitempty"`+ LimitBytes int64 `protobuf:"varint,6,opt,name=limit_bytes,json=limitBytes,proto3" json:"limit_bytes,omitempty"`+ RemainingBytes int64 `protobuf:"varint,7,opt,name=remaining_bytes,json=remainingBytes,proto3" json:"remaining_bytes,omitempty"`+ ResetAtUnix int64 `protobuf:"varint,8,opt,name=reset_at_unix,json=resetAtUnix,proto3" json:"reset_at_unix,omitempty"`+ UpdatedAtUnix int64 `protobuf:"varint,9,opt,name=updated_at_unix,json=updatedAtUnix,proto3" json:"updated_at_unix,omitempty"`+ Reason string `protobuf:"bytes,10,opt,name=reason,proto3" json:"reason,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache+}++func (x *OfficialUsage) Reset() {+ *x = OfficialUsage{}- mi := &file_pasteferry_v1_daemon_proto_msgTypes[23]++ mi := &file_pasteferry_v1_daemon_proto_msgTypes[26]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *OfficialUsage) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*OfficialUsage) ProtoMessage() {}++func (x *OfficialUsage) ProtoReflect() protoreflect.Message {- mi := &file_pasteferry_v1_daemon_proto_msgTypes[23]++ mi := &file_pasteferry_v1_daemon_proto_msgTypes[26]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use OfficialUsage.ProtoReflect.Descriptor instead.+func (*OfficialUsage) Descriptor() ([]byte, []int) {- return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{23}++ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{26}+}++func (x *OfficialUsage) GetAvailable() bool {+ if x != nil {+ return x.Available+ }+ return false+}++func (x *OfficialUsage) GetDay() string {+ if x != nil {+ return x.Day+ }+ return ""+}++func (x *OfficialUsage) GetQuotaGroup() string {+ if x != nil {+ return x.QuotaGroup+ }+ return ""+}++func (x *OfficialUsage) GetUploadBytes() int64 {+ if x != nil {+ return x.UploadBytes+ }+ return 0+}++func (x *OfficialUsage) GetDownloadBytes() int64 {+ if x != nil {+ return x.DownloadBytes+ }+ return 0+}++func (x *OfficialUsage) GetLimitBytes() int64 {+ if x != nil {+ return x.LimitBytes+ }+ return 0+}++func (x *OfficialUsage) GetRemainingBytes() int64 {+ if x != nil {+ return x.RemainingBytes+ }+ return 0+}++func (x *OfficialUsage) GetResetAtUnix() int64 {+ if x != nil {+ return x.ResetAtUnix+ }+ return 0+}++func (x *OfficialUsage) GetUpdatedAtUnix() int64 {+ if x != nil {+ return x.UpdatedAtUnix+ }+ return 0+}++func (x *OfficialUsage) GetReason() string {+ if x != nil {+ return x.Reason+ }+ return ""+}+// 最近一轮网络出口探测的结果。type NetworkInfo struct {state protoimpl.MessageState `protogen:"open.v1"`@@@ -2037,7 -2086,7 +2279,7 @@@func (x *NetworkInfo) Reset() {*x = NetworkInfo{}- mi := &file_pasteferry_v1_daemon_proto_msgTypes[24]- mi := &file_pasteferry_v1_daemon_proto_msgTypes[26]++ mi := &file_pasteferry_v1_daemon_proto_msgTypes[27]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@@ -2049,7 -2098,7 +2291,7 @@@ func (x *NetworkInfo) String() stringfunc (*NetworkInfo) ProtoMessage() {}func (x *NetworkInfo) ProtoReflect() protoreflect.Message {- mi := &file_pasteferry_v1_daemon_proto_msgTypes[24]- mi := &file_pasteferry_v1_daemon_proto_msgTypes[26]++ mi := &file_pasteferry_v1_daemon_proto_msgTypes[27]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@@ -2062,7 -2111,7 +2304,7 @@@// Deprecated: Use NetworkInfo.ProtoReflect.Descriptor instead.func (*NetworkInfo) Descriptor() ([]byte, []int) {- return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{24}- return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{26}++ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{27}}func (x *NetworkInfo) GetLocalPort() int32 {@@@ -2122,7 -2171,7 +2364,7 @@@ type LanInfo structfunc (x *LanInfo) Reset() {*x = LanInfo{}- mi := &file_pasteferry_v1_daemon_proto_msgTypes[25]- mi := &file_pasteferry_v1_daemon_proto_msgTypes[27]++ mi := &file_pasteferry_v1_daemon_proto_msgTypes[28]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@@ -2134,7 -2183,7 +2376,7 @@@ func (x *LanInfo) String() stringfunc (*LanInfo) ProtoMessage() {}func (x *LanInfo) ProtoReflect() protoreflect.Message {- mi := &file_pasteferry_v1_daemon_proto_msgTypes[25]- mi := &file_pasteferry_v1_daemon_proto_msgTypes[27]++ mi := &file_pasteferry_v1_daemon_proto_msgTypes[28]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@@ -2147,7 -2196,7 +2389,7 @@@// Deprecated: Use LanInfo.ProtoReflect.Descriptor instead.func (*LanInfo) Descriptor() ([]byte, []int) {- return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{25}- return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{27}++ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{28}}func (x *LanInfo) GetEnabled() bool {@@@ -2206,7 -2255,7 +2448,7 @@@ type LanPeer structfunc (x *LanPeer) Reset() {*x = LanPeer{}- mi := &file_pasteferry_v1_daemon_proto_msgTypes[26]- mi := &file_pasteferry_v1_daemon_proto_msgTypes[28]++ mi := &file_pasteferry_v1_daemon_proto_msgTypes[29]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@@ -2218,7 -2267,7 +2460,7 @@@ func (x *LanPeer) String() stringfunc (*LanPeer) ProtoMessage() {}func (x *LanPeer) ProtoReflect() protoreflect.Message {- mi := &file_pasteferry_v1_daemon_proto_msgTypes[26]- mi := &file_pasteferry_v1_daemon_proto_msgTypes[28]++ mi := &file_pasteferry_v1_daemon_proto_msgTypes[29]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@@ -2231,7 -2280,7 +2473,7 @@@// Deprecated: Use LanPeer.ProtoReflect.Descriptor instead.func (*LanPeer) Descriptor() ([]byte, []int) {- return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{26}- return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{28}++ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{29}}func (x *LanPeer) GetDeviceId() string {@@@ -2288,7 -2337,7 +2530,7 @@@ type NetworkEgress structfunc (x *NetworkEgress) Reset() {*x = NetworkEgress{}- mi := &file_pasteferry_v1_daemon_proto_msgTypes[27]- mi := &file_pasteferry_v1_daemon_proto_msgTypes[29]++ mi := &file_pasteferry_v1_daemon_proto_msgTypes[30]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@@ -2300,7 -2349,7 +2542,7 @@@ func (x *NetworkEgress) String() strinfunc (*NetworkEgress) ProtoMessage() {}func (x *NetworkEgress) ProtoReflect() protoreflect.Message {- mi := &file_pasteferry_v1_daemon_proto_msgTypes[27]- mi := &file_pasteferry_v1_daemon_proto_msgTypes[29]++ mi := &file_pasteferry_v1_daemon_proto_msgTypes[30]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@@ -2313,7 -2362,7 +2555,7 @@@// Deprecated: Use NetworkEgress.ProtoReflect.Descriptor instead.func (*NetworkEgress) Descriptor() ([]byte, []int) {- return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{27}- return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{29}++ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{30}}func (x *NetworkEgress) GetAddress() string {@@@ -2367,7 -2415,7 +2609,7 @@@ type Status structfunc (x *Status) Reset() {*x = Status{}- mi := &file_pasteferry_v1_daemon_proto_msgTypes[28]- mi := &file_pasteferry_v1_daemon_proto_msgTypes[30]++ mi := &file_pasteferry_v1_daemon_proto_msgTypes[31]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@@ -2379,7 -2427,7 +2621,7 @@@ func (x *Status) String() stringfunc (*Status) ProtoMessage() {}func (x *Status) ProtoReflect() protoreflect.Message {- mi := &file_pasteferry_v1_daemon_proto_msgTypes[28]- mi := &file_pasteferry_v1_daemon_proto_msgTypes[30]++ mi := &file_pasteferry_v1_daemon_proto_msgTypes[31]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@@ -2392,7 -2440,7 +2634,7 @@@// Deprecated: Use Status.ProtoReflect.Descriptor instead.func (*Status) Descriptor() ([]byte, []int) {- return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{28}- return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{30}++ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{31}}func (x *Status) GetDeviceId() string {@@@ -2489,7 -2530,7 +2731,7 @@@ type ExportDiagnosticsRequest structfunc (x *ExportDiagnosticsRequest) Reset() {*x = ExportDiagnosticsRequest{}- mi := &file_pasteferry_v1_daemon_proto_msgTypes[29]- mi := &file_pasteferry_v1_daemon_proto_msgTypes[31]++ mi := &file_pasteferry_v1_daemon_proto_msgTypes[32]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@@ -2501,7 -2542,7 +2743,7 @@@ func (x *ExportDiagnosticsRequest) Strifunc (*ExportDiagnosticsRequest) ProtoMessage() {}func (x *ExportDiagnosticsRequest) ProtoReflect() protoreflect.Message {- mi := &file_pasteferry_v1_daemon_proto_msgTypes[29]- mi := &file_pasteferry_v1_daemon_proto_msgTypes[31]++ mi := &file_pasteferry_v1_daemon_proto_msgTypes[32]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@@ -2514,7 -2555,7 +2756,7 @@@// Deprecated: Use ExportDiagnosticsRequest.ProtoReflect.Descriptor instead.func (*ExportDiagnosticsRequest) Descriptor() ([]byte, []int) {- return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{29}- return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{31}++ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{32}}func (x *ExportDiagnosticsRequest) GetLogLines() int32 {@@@ -2540,7 -2581,7 +2782,7 @@@ type Diagnostics structfunc (x *Diagnostics) Reset() {*x = Diagnostics{}- mi := &file_pasteferry_v1_daemon_proto_msgTypes[30]- mi := &file_pasteferry_v1_daemon_proto_msgTypes[32]++ mi := &file_pasteferry_v1_daemon_proto_msgTypes[33]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@@ -2552,7 -2593,7 +2794,7 @@@ func (x *Diagnostics) String() stringfunc (*Diagnostics) ProtoMessage() {}func (x *Diagnostics) ProtoReflect() protoreflect.Message {- mi := &file_pasteferry_v1_daemon_proto_msgTypes[30]- mi := &file_pasteferry_v1_daemon_proto_msgTypes[32]++ mi := &file_pasteferry_v1_daemon_proto_msgTypes[33]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@@ -2565,7 -2606,7 +2807,7 @@@// Deprecated: Use Diagnostics.ProtoReflect.Descriptor instead.func (*Diagnostics) Descriptor() ([]byte, []int) {- return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{30}- return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{32}++ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{33}}func (x *Diagnostics) GetReport() string {@@@ -2584,7 -2625,7 +2826,7 @@@ type SetVerboseLogRequest structfunc (x *SetVerboseLogRequest) Reset() {*x = SetVerboseLogRequest{}- mi := &file_pasteferry_v1_daemon_proto_msgTypes[31]- mi := &file_pasteferry_v1_daemon_proto_msgTypes[33]++ mi := &file_pasteferry_v1_daemon_proto_msgTypes[34]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@@ -2596,7 -2637,7 +2838,7 @@@ func (x *SetVerboseLogRequest) String(func (*SetVerboseLogRequest) ProtoMessage() {}func (x *SetVerboseLogRequest) ProtoReflect() protoreflect.Message {- mi := &file_pasteferry_v1_daemon_proto_msgTypes[31]- mi := &file_pasteferry_v1_daemon_proto_msgTypes[33]++ mi := &file_pasteferry_v1_daemon_proto_msgTypes[34]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@@ -2609,7 -2650,7 +2851,7 @@@// Deprecated: Use SetVerboseLogRequest.ProtoReflect.Descriptor instead.func (*SetVerboseLogRequest) Descriptor() ([]byte, []int) {- return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{31}- return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{33}++ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{34}}func (x *SetVerboseLogRequest) GetMinutes() int32 {@@@ -2629,7 -2670,7 +2871,7 @@@ type GetImagePreviewRequest structfunc (x *GetImagePreviewRequest) Reset() {*x = GetImagePreviewRequest{}- mi := &file_pasteferry_v1_daemon_proto_msgTypes[32]- mi := &file_pasteferry_v1_daemon_proto_msgTypes[34]++ mi := &file_pasteferry_v1_daemon_proto_msgTypes[35]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@@ -2641,7 -2682,7 +2883,7 @@@ func (x *GetImagePreviewRequest) Stringfunc (*GetImagePreviewRequest) ProtoMessage() {}func (x *GetImagePreviewRequest) ProtoReflect() protoreflect.Message {- mi := &file_pasteferry_v1_daemon_proto_msgTypes[32]- mi := &file_pasteferry_v1_daemon_proto_msgTypes[34]++ mi := &file_pasteferry_v1_daemon_proto_msgTypes[35]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@@ -2654,7 -2695,7 +2896,7 @@@// Deprecated: Use GetImagePreviewRequest.ProtoReflect.Descriptor instead.func (*GetImagePreviewRequest) Descriptor() ([]byte, []int) {- return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{32}- return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{34}++ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{35}}func (x *GetImagePreviewRequest) GetClipId() string {@@@ -2682,7 -2723,7 +2924,7 @@@ type GetImagePreviewResponse structfunc (x *GetImagePreviewResponse) Reset() {*x = GetImagePreviewResponse{}- mi := &file_pasteferry_v1_daemon_proto_msgTypes[33]- mi := &file_pasteferry_v1_daemon_proto_msgTypes[35]++ mi := &file_pasteferry_v1_daemon_proto_msgTypes[36]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@@ -2694,7 -2735,7 +2936,7 @@@ func (x *GetImagePreviewResponse) Strinfunc (*GetImagePreviewResponse) ProtoMessage() {}func (x *GetImagePreviewResponse) ProtoReflect() protoreflect.Message {- mi := &file_pasteferry_v1_daemon_proto_msgTypes[33]- mi := &file_pasteferry_v1_daemon_proto_msgTypes[35]++ mi := &file_pasteferry_v1_daemon_proto_msgTypes[36]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@@ -2707,7 -2748,7 +2949,7 @@@// Deprecated: Use GetImagePreviewResponse.ProtoReflect.Descriptor instead.func (*GetImagePreviewResponse) Descriptor() ([]byte, []int) {- return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{33}- return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{35}++ return file_pasteferry_v1_daemon_proto_rawDescGZIP(), []int{36}}func (x *GetImagePreviewResponse) GetPath() string {@@@ -2959,12 -2996,12 +3215,17 @@@ const file_pasteferry_v1_daemon_proto_r"\x1cCLIPBOARD_PERMISSION_DEFAULT\x10\x02\x12\x1c\n" +"\x18CLIPBOARD_PERMISSION_ASK\x10\x03\x12%\n" +"!CLIPBOARD_PERMISSION_ALWAYS_ALLOW\x10\x04\x12$\n" +- " CLIPBOARD_PERMISSION_ALWAYS_DENY\x10\x05*u\n" ++ " CLIPBOARD_PERMISSION_ALWAYS_DENY\x10\x05*\xb0\x01\n" ++ "\x15ClipboardWriteOutcome\x12'\n" ++ "#CLIPBOARD_WRITE_OUTCOME_UNSPECIFIED\x10\x00\x12#\n" ++ "\x1fCLIPBOARD_WRITE_OUTCOME_APPLIED\x10\x01\x12%\n" ++ "!CLIPBOARD_WRITE_OUTCOME_PRESERVED\x10\x02\x12\"\n" +- "\x1eCLIPBOARD_WRITE_OUTCOME_FAILED\x10\x032\x97\x0f\n" +++ "\x1eCLIPBOARD_WRITE_OUTCOME_FAILED\x10\x03*u\n" ++ "\vServiceMode\x12\x1c\n" ++ "\x18SERVICE_MODE_UNSPECIFIED\x10\x00\x12\x14\n" ++ "\x10SERVICE_MODE_LAN\x10\x01\x12\x19\n" ++ "\x15SERVICE_MODE_OFFICIAL\x10\x02\x12\x17\n" +- "\x13SERVICE_MODE_CUSTOM\x10\x032\x9a\r\n" +++ "\x13SERVICE_MODE_CUSTOM\x10\x032\x97\x0f\n" +"\rDaemonService\x12D\n" +"\tSubscribe\x12\x1f.pasteferry.v1.SubscribeRequest\x1a\x14.pasteferry.v1.Event0\x01\x12T\n" +"\vListHistory\x12!.pasteferry.v1.ListHistoryRequest\x1a\".pasteferry.v1.ListHistoryResponse\x12J\n" +@@@ -3003,121 -3043,129 +3267,133 @@@ func file_pasteferry_v1_daemon_proto_rareturn file_pasteferry_v1_daemon_proto_rawDescData}--var file_pasteferry_v1_daemon_proto_enumTypes = make([]protoimpl.EnumInfo, 5)- var file_pasteferry_v1_daemon_proto_msgTypes = make([]protoimpl.MessageInfo, 34)-var file_pasteferry_v1_daemon_proto_msgTypes = make([]protoimpl.MessageInfo, 36)++var file_pasteferry_v1_daemon_proto_enumTypes = make([]protoimpl.EnumInfo, 6)++var file_pasteferry_v1_daemon_proto_msgTypes = make([]protoimpl.MessageInfo, 37)var file_pasteferry_v1_daemon_proto_goTypes = []any{(ClipKind)(0), // 0: pasteferry.v1.ClipKind(ClipStatus)(0), // 1: pasteferry.v1.ClipStatus(ConnectionKind)(0), // 2: pasteferry.v1.ConnectionKind(ClipboardPermission)(0), // 3: pasteferry.v1.ClipboardPermission- (ServiceMode)(0), // 4: pasteferry.v1.ServiceMode- (*Empty)(nil), // 5: pasteferry.v1.Empty- (*ClipItem)(nil), // 6: pasteferry.v1.ClipItem- (*ClipRecord)(nil), // 7: pasteferry.v1.ClipRecord- (*SubscribeRequest)(nil), // 8: pasteferry.v1.SubscribeRequest- (*TransferProgress)(nil), // 9: pasteferry.v1.TransferProgress- (*Device)(nil), // 10: pasteferry.v1.Device- (*Event)(nil), // 11: pasteferry.v1.Event- (*ListHistoryRequest)(nil), // 12: pasteferry.v1.ListHistoryRequest- (*ListHistoryResponse)(nil), // 13: pasteferry.v1.ListHistoryResponse- (*DeleteHistoryRequest)(nil), // 14: pasteferry.v1.DeleteHistoryRequest- (*FetchRequest)(nil), // 15: pasteferry.v1.FetchRequest- (*ApplyToClipboardRequest)(nil), // 16: pasteferry.v1.ApplyToClipboardRequest- (*ListDevicesResponse)(nil), // 17: pasteferry.v1.ListDevicesResponse- (*CreatePairingCodeResponse)(nil), // 18: pasteferry.v1.CreatePairingCodeResponse- (*RedeemPairingCodeRequest)(nil), // 19: pasteferry.v1.RedeemPairingCodeRequest- (*RedeemPairingCodeResponse)(nil), // 20: pasteferry.v1.RedeemPairingCodeResponse- (*ConfirmPairingRequest)(nil), // 21: pasteferry.v1.ConfirmPairingRequest- (*NearbyDevice)(nil), // 22: pasteferry.v1.NearbyDevice- (*NearbyDevices)(nil), // 23: pasteferry.v1.NearbyDevices- (*PairNearbyRequest)(nil), // 24: pasteferry.v1.PairNearbyRequest- (*UnpairRequest)(nil), // 25: pasteferry.v1.UnpairRequest- (*SetDeviceAddressRequest)(nil), // 26: pasteferry.v1.SetDeviceAddressRequest- (*Config)(nil), // 27: pasteferry.v1.Config- (*OfficialUsage)(nil), // 28: pasteferry.v1.OfficialUsage- (*NetworkInfo)(nil), // 29: pasteferry.v1.NetworkInfo- (*LanInfo)(nil), // 30: pasteferry.v1.LanInfo- (*LanPeer)(nil), // 31: pasteferry.v1.LanPeer- (*NetworkEgress)(nil), // 32: pasteferry.v1.NetworkEgress- (*Status)(nil), // 33: pasteferry.v1.Status- (*ExportDiagnosticsRequest)(nil), // 34: pasteferry.v1.ExportDiagnosticsRequest- (*Diagnostics)(nil), // 35: pasteferry.v1.Diagnostics- (*SetVerboseLogRequest)(nil), // 36: pasteferry.v1.SetVerboseLogRequest- (*GetImagePreviewRequest)(nil), // 37: pasteferry.v1.GetImagePreviewRequest- (*GetImagePreviewResponse)(nil), // 38: pasteferry.v1.GetImagePreviewResponse+ (ClipboardWriteOutcome)(0), // 4: pasteferry.v1.ClipboardWriteOutcome- (*Empty)(nil), // 5: pasteferry.v1.Empty- (*ClipItem)(nil), // 6: pasteferry.v1.ClipItem- (*ClipRecord)(nil), // 7: pasteferry.v1.ClipRecord- (*SubscribeRequest)(nil), // 8: pasteferry.v1.SubscribeRequest- (*TransferProgress)(nil), // 9: pasteferry.v1.TransferProgress- (*Device)(nil), // 10: pasteferry.v1.Device- (*Event)(nil), // 11: pasteferry.v1.Event- (*NotificationStatus)(nil), // 12: pasteferry.v1.NotificationStatus- (*NotificationAction)(nil), // 13: pasteferry.v1.NotificationAction- (*ClipboardWriteResult)(nil), // 14: pasteferry.v1.ClipboardWriteResult- (*ListHistoryRequest)(nil), // 15: pasteferry.v1.ListHistoryRequest- (*ListHistoryResponse)(nil), // 16: pasteferry.v1.ListHistoryResponse- (*DeleteHistoryRequest)(nil), // 17: pasteferry.v1.DeleteHistoryRequest- (*FetchRequest)(nil), // 18: pasteferry.v1.FetchRequest- (*ApplyToClipboardRequest)(nil), // 19: pasteferry.v1.ApplyToClipboardRequest- (*ListDevicesResponse)(nil), // 20: pasteferry.v1.ListDevicesResponse- (*CreatePairingCodeResponse)(nil), // 21: pasteferry.v1.CreatePairingCodeResponse- (*RedeemPairingCodeRequest)(nil), // 22: pasteferry.v1.RedeemPairingCodeRequest- (*RedeemPairingCodeResponse)(nil), // 23: pasteferry.v1.RedeemPairingCodeResponse- (*ConfirmPairingRequest)(nil), // 24: pasteferry.v1.ConfirmPairingRequest- (*NearbyDevice)(nil), // 25: pasteferry.v1.NearbyDevice- (*NearbyDevices)(nil), // 26: pasteferry.v1.NearbyDevices- (*PairNearbyRequest)(nil), // 27: pasteferry.v1.PairNearbyRequest- (*UnpairRequest)(nil), // 28: pasteferry.v1.UnpairRequest- (*SetDeviceAddressRequest)(nil), // 29: pasteferry.v1.SetDeviceAddressRequest- (*Config)(nil), // 30: pasteferry.v1.Config- (*NetworkInfo)(nil), // 31: pasteferry.v1.NetworkInfo- (*LanInfo)(nil), // 32: pasteferry.v1.LanInfo- (*LanPeer)(nil), // 33: pasteferry.v1.LanPeer- (*NetworkEgress)(nil), // 34: pasteferry.v1.NetworkEgress- (*Status)(nil), // 35: pasteferry.v1.Status- (*ExportDiagnosticsRequest)(nil), // 36: pasteferry.v1.ExportDiagnosticsRequest- (*Diagnostics)(nil), // 37: pasteferry.v1.Diagnostics- (*SetVerboseLogRequest)(nil), // 38: pasteferry.v1.SetVerboseLogRequest- (*GetImagePreviewRequest)(nil), // 39: pasteferry.v1.GetImagePreviewRequest- (*GetImagePreviewResponse)(nil), // 40: pasteferry.v1.GetImagePreviewResponse++ (ServiceMode)(0), // 5: pasteferry.v1.ServiceMode++ (*Empty)(nil), // 6: pasteferry.v1.Empty++ (*ClipItem)(nil), // 7: pasteferry.v1.ClipItem++ (*ClipRecord)(nil), // 8: pasteferry.v1.ClipRecord++ (*SubscribeRequest)(nil), // 9: pasteferry.v1.SubscribeRequest++ (*TransferProgress)(nil), // 10: pasteferry.v1.TransferProgress++ (*Device)(nil), // 11: pasteferry.v1.Device++ (*Event)(nil), // 12: pasteferry.v1.Event++ (*NotificationStatus)(nil), // 13: pasteferry.v1.NotificationStatus++ (*NotificationAction)(nil), // 14: pasteferry.v1.NotificationAction++ (*ClipboardWriteResult)(nil), // 15: pasteferry.v1.ClipboardWriteResult++ (*ListHistoryRequest)(nil), // 16: pasteferry.v1.ListHistoryRequest++ (*ListHistoryResponse)(nil), // 17: pasteferry.v1.ListHistoryResponse++ (*DeleteHistoryRequest)(nil), // 18: pasteferry.v1.DeleteHistoryRequest++ (*FetchRequest)(nil), // 19: pasteferry.v1.FetchRequest++ (*ApplyToClipboardRequest)(nil), // 20: pasteferry.v1.ApplyToClipboardRequest++ (*ListDevicesResponse)(nil), // 21: pasteferry.v1.ListDevicesResponse++ (*CreatePairingCodeResponse)(nil), // 22: pasteferry.v1.CreatePairingCodeResponse++ (*RedeemPairingCodeRequest)(nil), // 23: pasteferry.v1.RedeemPairingCodeRequest++ (*RedeemPairingCodeResponse)(nil), // 24: pasteferry.v1.RedeemPairingCodeResponse++ (*ConfirmPairingRequest)(nil), // 25: pasteferry.v1.ConfirmPairingRequest++ (*NearbyDevice)(nil), // 26: pasteferry.v1.NearbyDevice++ (*NearbyDevices)(nil), // 27: pasteferry.v1.NearbyDevices++ (*PairNearbyRequest)(nil), // 28: pasteferry.v1.PairNearbyRequest++ (*UnpairRequest)(nil), // 29: pasteferry.v1.UnpairRequest++ (*SetDeviceAddressRequest)(nil), // 30: pasteferry.v1.SetDeviceAddressRequest++ (*Config)(nil), // 31: pasteferry.v1.Config++ (*OfficialUsage)(nil), // 32: pasteferry.v1.OfficialUsage++ (*NetworkInfo)(nil), // 33: pasteferry.v1.NetworkInfo++ (*LanInfo)(nil), // 34: pasteferry.v1.LanInfo++ (*LanPeer)(nil), // 35: pasteferry.v1.LanPeer++ (*NetworkEgress)(nil), // 36: pasteferry.v1.NetworkEgress++ (*Status)(nil), // 37: pasteferry.v1.Status++ (*ExportDiagnosticsRequest)(nil), // 38: pasteferry.v1.ExportDiagnosticsRequest++ (*Diagnostics)(nil), // 39: pasteferry.v1.Diagnostics++ (*SetVerboseLogRequest)(nil), // 40: pasteferry.v1.SetVerboseLogRequest++ (*GetImagePreviewRequest)(nil), // 41: pasteferry.v1.GetImagePreviewRequest++ (*GetImagePreviewResponse)(nil), // 42: pasteferry.v1.GetImagePreviewResponse}var file_pasteferry_v1_daemon_proto_depIdxs = []int32{0, // 0: pasteferry.v1.ClipRecord.kind:type_name -> pasteferry.v1.ClipKind1, // 1: pasteferry.v1.ClipRecord.status:type_name -> pasteferry.v1.ClipStatus-- 6, // 2: pasteferry.v1.ClipRecord.items:type_name -> pasteferry.v1.ClipItem++ 7, // 2: pasteferry.v1.ClipRecord.items:type_name -> pasteferry.v1.ClipItem2, // 3: pasteferry.v1.Device.connection:type_name -> pasteferry.v1.ConnectionKind-- 7, // 4: pasteferry.v1.Event.clip_added:type_name -> pasteferry.v1.ClipRecord-- 7, // 5: pasteferry.v1.Event.clip_updated:type_name -> pasteferry.v1.ClipRecord-- 9, // 6: pasteferry.v1.Event.progress:type_name -> pasteferry.v1.TransferProgress-- 10, // 7: pasteferry.v1.Event.device_changed:type_name -> pasteferry.v1.Device++ 8, // 4: pasteferry.v1.Event.clip_added:type_name -> pasteferry.v1.ClipRecord++ 8, // 5: pasteferry.v1.Event.clip_updated:type_name -> pasteferry.v1.ClipRecord++ 10, // 6: pasteferry.v1.Event.progress:type_name -> pasteferry.v1.TransferProgress++ 11, // 7: pasteferry.v1.Event.device_changed:type_name -> pasteferry.v1.Device3, // 8: pasteferry.v1.Event.permission_changed:type_name -> pasteferry.v1.ClipboardPermission- 33, // 9: pasteferry.v1.Event.status_changed:type_name -> pasteferry.v1.Status- 0, // 10: pasteferry.v1.ListHistoryRequest.kind_filter:type_name -> pasteferry.v1.ClipKind- 7, // 11: pasteferry.v1.ListHistoryResponse.records:type_name -> pasteferry.v1.ClipRecord- 10, // 12: pasteferry.v1.ListDevicesResponse.self:type_name -> pasteferry.v1.Device- 10, // 13: pasteferry.v1.ListDevicesResponse.peers:type_name -> pasteferry.v1.Device- 10, // 14: pasteferry.v1.RedeemPairingCodeResponse.peer:type_name -> pasteferry.v1.Device- 22, // 15: pasteferry.v1.NearbyDevices.devices:type_name -> pasteferry.v1.NearbyDevice- 4, // 16: pasteferry.v1.Config.service_mode:type_name -> pasteferry.v1.ServiceMode- 32, // 17: pasteferry.v1.NetworkInfo.egresses:type_name -> pasteferry.v1.NetworkEgress- 30, // 18: pasteferry.v1.NetworkInfo.lan:type_name -> pasteferry.v1.LanInfo- 31, // 19: pasteferry.v1.LanInfo.peers:type_name -> pasteferry.v1.LanPeer- 3, // 20: pasteferry.v1.Status.clipboard_permission:type_name -> pasteferry.v1.ClipboardPermission- 28, // 21: pasteferry.v1.Status.official_usage:type_name -> pasteferry.v1.OfficialUsage- 8, // 22: pasteferry.v1.DaemonService.Subscribe:input_type -> pasteferry.v1.SubscribeRequest- 12, // 23: pasteferry.v1.DaemonService.ListHistory:input_type -> pasteferry.v1.ListHistoryRequest- 14, // 24: pasteferry.v1.DaemonService.DeleteHistory:input_type -> pasteferry.v1.DeleteHistoryRequest- 15, // 25: pasteferry.v1.DaemonService.Fetch:input_type -> pasteferry.v1.FetchRequest- 16, // 26: pasteferry.v1.DaemonService.ApplyToClipboard:input_type -> pasteferry.v1.ApplyToClipboardRequest- 37, // 27: pasteferry.v1.DaemonService.GetImagePreview:input_type -> pasteferry.v1.GetImagePreviewRequest- 5, // 28: pasteferry.v1.DaemonService.ListDevices:input_type -> pasteferry.v1.Empty- 5, // 29: pasteferry.v1.DaemonService.CreatePairingCode:input_type -> pasteferry.v1.Empty- 19, // 30: pasteferry.v1.DaemonService.RedeemPairingCode:input_type -> pasteferry.v1.RedeemPairingCodeRequest- 21, // 31: pasteferry.v1.DaemonService.ConfirmPairing:input_type -> pasteferry.v1.ConfirmPairingRequest- 25, // 32: pasteferry.v1.DaemonService.Unpair:input_type -> pasteferry.v1.UnpairRequest- 26, // 33: pasteferry.v1.DaemonService.SetDeviceAddress:input_type -> pasteferry.v1.SetDeviceAddressRequest- 5, // 34: pasteferry.v1.DaemonService.WatchNearby:input_type -> pasteferry.v1.Empty- 24, // 35: pasteferry.v1.DaemonService.PairNearby:input_type -> pasteferry.v1.PairNearbyRequest- 5, // 36: pasteferry.v1.DaemonService.GetConfig:input_type -> pasteferry.v1.Empty- 27, // 37: pasteferry.v1.DaemonService.UpdateConfig:input_type -> pasteferry.v1.Config- 5, // 38: pasteferry.v1.DaemonService.GetStatus:input_type -> pasteferry.v1.Empty- 5, // 39: pasteferry.v1.DaemonService.RequestClipboardPermission:input_type -> pasteferry.v1.Empty- 5, // 40: pasteferry.v1.DaemonService.RequestLocalNetworkPermission:input_type -> pasteferry.v1.Empty- 5, // 41: pasteferry.v1.DaemonService.GetNetwork:input_type -> pasteferry.v1.Empty- 34, // 42: pasteferry.v1.DaemonService.ExportDiagnostics:input_type -> pasteferry.v1.ExportDiagnosticsRequest- 36, // 43: pasteferry.v1.DaemonService.SetVerboseLog:input_type -> pasteferry.v1.SetVerboseLogRequest- 11, // 44: pasteferry.v1.DaemonService.Subscribe:output_type -> pasteferry.v1.Event- 13, // 45: pasteferry.v1.DaemonService.ListHistory:output_type -> pasteferry.v1.ListHistoryResponse- 5, // 46: pasteferry.v1.DaemonService.DeleteHistory:output_type -> pasteferry.v1.Empty- 5, // 47: pasteferry.v1.DaemonService.Fetch:output_type -> pasteferry.v1.Empty- 5, // 48: pasteferry.v1.DaemonService.ApplyToClipboard:output_type -> pasteferry.v1.Empty- 38, // 49: pasteferry.v1.DaemonService.GetImagePreview:output_type -> pasteferry.v1.GetImagePreviewResponse- 17, // 50: pasteferry.v1.DaemonService.ListDevices:output_type -> pasteferry.v1.ListDevicesResponse- 18, // 51: pasteferry.v1.DaemonService.CreatePairingCode:output_type -> pasteferry.v1.CreatePairingCodeResponse- 20, // 52: pasteferry.v1.DaemonService.RedeemPairingCode:output_type -> pasteferry.v1.RedeemPairingCodeResponse- 5, // 53: pasteferry.v1.DaemonService.ConfirmPairing:output_type -> pasteferry.v1.Empty- 5, // 54: pasteferry.v1.DaemonService.Unpair:output_type -> pasteferry.v1.Empty- 5, // 55: pasteferry.v1.DaemonService.SetDeviceAddress:output_type -> pasteferry.v1.Empty- 23, // 56: pasteferry.v1.DaemonService.WatchNearby:output_type -> pasteferry.v1.NearbyDevices- 20, // 57: pasteferry.v1.DaemonService.PairNearby:output_type -> pasteferry.v1.RedeemPairingCodeResponse- 27, // 58: pasteferry.v1.DaemonService.GetConfig:output_type -> pasteferry.v1.Config- 27, // 59: pasteferry.v1.DaemonService.UpdateConfig:output_type -> pasteferry.v1.Config- 33, // 60: pasteferry.v1.DaemonService.GetStatus:output_type -> pasteferry.v1.Status- 5, // 61: pasteferry.v1.DaemonService.RequestClipboardPermission:output_type -> pasteferry.v1.Empty- 5, // 62: pasteferry.v1.DaemonService.RequestLocalNetworkPermission:output_type -> pasteferry.v1.Empty- 29, // 63: pasteferry.v1.DaemonService.GetNetwork:output_type -> pasteferry.v1.NetworkInfo- 35, // 64: pasteferry.v1.DaemonService.ExportDiagnostics:output_type -> pasteferry.v1.Diagnostics- 33, // 65: pasteferry.v1.DaemonService.SetVerboseLog:output_type -> pasteferry.v1.Status- 44, // [44:66] is the sub-list for method output_type- 22, // [22:44] is the sub-list for method input_type- 22, // [22:22] is the sub-list for extension type_name- 22, // [22:22] is the sub-list for extension extendee- 0, // [0:22] is the sub-list for field type_name- 35, // 9: pasteferry.v1.Event.status_changed:type_name -> pasteferry.v1.Status- 14, // 10: pasteferry.v1.Event.clipboard_written:type_name -> pasteferry.v1.ClipboardWriteResult++ 37, // 9: pasteferry.v1.Event.status_changed:type_name -> pasteferry.v1.Status++ 15, // 10: pasteferry.v1.Event.clipboard_written:type_name -> pasteferry.v1.ClipboardWriteResult+ 4, // 11: pasteferry.v1.ClipboardWriteResult.outcome:type_name -> pasteferry.v1.ClipboardWriteOutcome+ 0, // 12: pasteferry.v1.ListHistoryRequest.kind_filter:type_name -> pasteferry.v1.ClipKind- 7, // 13: pasteferry.v1.ListHistoryResponse.records:type_name -> pasteferry.v1.ClipRecord- 10, // 14: pasteferry.v1.ListDevicesResponse.self:type_name -> pasteferry.v1.Device- 10, // 15: pasteferry.v1.ListDevicesResponse.peers:type_name -> pasteferry.v1.Device- 10, // 16: pasteferry.v1.RedeemPairingCodeResponse.peer:type_name -> pasteferry.v1.Device- 25, // 17: pasteferry.v1.NearbyDevices.devices:type_name -> pasteferry.v1.NearbyDevice- 34, // 18: pasteferry.v1.NetworkInfo.egresses:type_name -> pasteferry.v1.NetworkEgress- 32, // 19: pasteferry.v1.NetworkInfo.lan:type_name -> pasteferry.v1.LanInfo- 33, // 20: pasteferry.v1.LanInfo.peers:type_name -> pasteferry.v1.LanPeer- 3, // 21: pasteferry.v1.Status.clipboard_permission:type_name -> pasteferry.v1.ClipboardPermission- 8, // 22: pasteferry.v1.DaemonService.Subscribe:input_type -> pasteferry.v1.SubscribeRequest- 15, // 23: pasteferry.v1.DaemonService.ListHistory:input_type -> pasteferry.v1.ListHistoryRequest- 17, // 24: pasteferry.v1.DaemonService.DeleteHistory:input_type -> pasteferry.v1.DeleteHistoryRequest- 18, // 25: pasteferry.v1.DaemonService.Fetch:input_type -> pasteferry.v1.FetchRequest- 19, // 26: pasteferry.v1.DaemonService.ApplyToClipboard:input_type -> pasteferry.v1.ApplyToClipboardRequest- 39, // 27: pasteferry.v1.DaemonService.GetImagePreview:input_type -> pasteferry.v1.GetImagePreviewRequest- 5, // 28: pasteferry.v1.DaemonService.ListDevices:input_type -> pasteferry.v1.Empty- 5, // 29: pasteferry.v1.DaemonService.CreatePairingCode:input_type -> pasteferry.v1.Empty- 22, // 30: pasteferry.v1.DaemonService.RedeemPairingCode:input_type -> pasteferry.v1.RedeemPairingCodeRequest- 24, // 31: pasteferry.v1.DaemonService.ConfirmPairing:input_type -> pasteferry.v1.ConfirmPairingRequest- 28, // 32: pasteferry.v1.DaemonService.Unpair:input_type -> pasteferry.v1.UnpairRequest- 29, // 33: pasteferry.v1.DaemonService.SetDeviceAddress:input_type -> pasteferry.v1.SetDeviceAddressRequest- 5, // 34: pasteferry.v1.DaemonService.WatchNearby:input_type -> pasteferry.v1.Empty- 27, // 35: pasteferry.v1.DaemonService.PairNearby:input_type -> pasteferry.v1.PairNearbyRequest- 5, // 36: pasteferry.v1.DaemonService.GetConfig:input_type -> pasteferry.v1.Empty- 30, // 37: pasteferry.v1.DaemonService.UpdateConfig:input_type -> pasteferry.v1.Config- 5, // 38: pasteferry.v1.DaemonService.GetStatus:input_type -> pasteferry.v1.Empty- 5, // 39: pasteferry.v1.DaemonService.RequestClipboardPermission:input_type -> pasteferry.v1.Empty- 5, // 40: pasteferry.v1.DaemonService.RequestLocalNetworkPermission:input_type -> pasteferry.v1.Empty- 5, // 41: pasteferry.v1.DaemonService.GetNotificationStatus:input_type -> pasteferry.v1.Empty- 5, // 42: pasteferry.v1.DaemonService.RequestNotificationPermission:input_type -> pasteferry.v1.Empty- 13, // 43: pasteferry.v1.DaemonService.ActivateNotification:input_type -> pasteferry.v1.NotificationAction- 5, // 44: pasteferry.v1.DaemonService.GetNetwork:input_type -> pasteferry.v1.Empty- 36, // 45: pasteferry.v1.DaemonService.ExportDiagnostics:input_type -> pasteferry.v1.ExportDiagnosticsRequest- 38, // 46: pasteferry.v1.DaemonService.SetVerboseLog:input_type -> pasteferry.v1.SetVerboseLogRequest- 11, // 47: pasteferry.v1.DaemonService.Subscribe:output_type -> pasteferry.v1.Event- 16, // 48: pasteferry.v1.DaemonService.ListHistory:output_type -> pasteferry.v1.ListHistoryResponse- 5, // 49: pasteferry.v1.DaemonService.DeleteHistory:output_type -> pasteferry.v1.Empty- 5, // 50: pasteferry.v1.DaemonService.Fetch:output_type -> pasteferry.v1.Empty- 5, // 51: pasteferry.v1.DaemonService.ApplyToClipboard:output_type -> pasteferry.v1.Empty- 40, // 52: pasteferry.v1.DaemonService.GetImagePreview:output_type -> pasteferry.v1.GetImagePreviewResponse- 20, // 53: pasteferry.v1.DaemonService.ListDevices:output_type -> pasteferry.v1.ListDevicesResponse- 21, // 54: pasteferry.v1.DaemonService.CreatePairingCode:output_type -> pasteferry.v1.CreatePairingCodeResponse- 23, // 55: pasteferry.v1.DaemonService.RedeemPairingCode:output_type -> pasteferry.v1.RedeemPairingCodeResponse- 5, // 56: pasteferry.v1.DaemonService.ConfirmPairing:output_type -> pasteferry.v1.Empty- 5, // 57: pasteferry.v1.DaemonService.Unpair:output_type -> pasteferry.v1.Empty- 5, // 58: pasteferry.v1.DaemonService.SetDeviceAddress:output_type -> pasteferry.v1.Empty- 26, // 59: pasteferry.v1.DaemonService.WatchNearby:output_type -> pasteferry.v1.NearbyDevices- 23, // 60: pasteferry.v1.DaemonService.PairNearby:output_type -> pasteferry.v1.RedeemPairingCodeResponse- 30, // 61: pasteferry.v1.DaemonService.GetConfig:output_type -> pasteferry.v1.Config- 30, // 62: pasteferry.v1.DaemonService.UpdateConfig:output_type -> pasteferry.v1.Config- 35, // 63: pasteferry.v1.DaemonService.GetStatus:output_type -> pasteferry.v1.Status- 5, // 64: pasteferry.v1.DaemonService.RequestClipboardPermission:output_type -> pasteferry.v1.Empty- 5, // 65: pasteferry.v1.DaemonService.RequestLocalNetworkPermission:output_type -> pasteferry.v1.Empty- 12, // 66: pasteferry.v1.DaemonService.GetNotificationStatus:output_type -> pasteferry.v1.NotificationStatus- 12, // 67: pasteferry.v1.DaemonService.RequestNotificationPermission:output_type -> pasteferry.v1.NotificationStatus- 5, // 68: pasteferry.v1.DaemonService.ActivateNotification:output_type -> pasteferry.v1.Empty- 31, // 69: pasteferry.v1.DaemonService.GetNetwork:output_type -> pasteferry.v1.NetworkInfo- 37, // 70: pasteferry.v1.DaemonService.ExportDiagnostics:output_type -> pasteferry.v1.Diagnostics- 35, // 71: pasteferry.v1.DaemonService.SetVerboseLog:output_type -> pasteferry.v1.Status- 47, // [47:72] is the sub-list for method output_type- 22, // [22:47] is the sub-list for method input_type- 22, // [22:22] is the sub-list for extension type_name- 22, // [22:22] is the sub-list for extension extendee- 0, // [0:22] is the sub-list for field type_name++ 8, // 13: pasteferry.v1.ListHistoryResponse.records:type_name -> pasteferry.v1.ClipRecord++ 11, // 14: pasteferry.v1.ListDevicesResponse.self:type_name -> pasteferry.v1.Device++ 11, // 15: pasteferry.v1.ListDevicesResponse.peers:type_name -> pasteferry.v1.Device++ 11, // 16: pasteferry.v1.RedeemPairingCodeResponse.peer:type_name -> pasteferry.v1.Device++ 26, // 17: pasteferry.v1.NearbyDevices.devices:type_name -> pasteferry.v1.NearbyDevice++ 5, // 18: pasteferry.v1.Config.service_mode:type_name -> pasteferry.v1.ServiceMode++ 36, // 19: pasteferry.v1.NetworkInfo.egresses:type_name -> pasteferry.v1.NetworkEgress++ 34, // 20: pasteferry.v1.NetworkInfo.lan:type_name -> pasteferry.v1.LanInfo++ 35, // 21: pasteferry.v1.LanInfo.peers:type_name -> pasteferry.v1.LanPeer++ 3, // 22: pasteferry.v1.Status.clipboard_permission:type_name -> pasteferry.v1.ClipboardPermission++ 32, // 23: pasteferry.v1.Status.official_usage:type_name -> pasteferry.v1.OfficialUsage++ 9, // 24: pasteferry.v1.DaemonService.Subscribe:input_type -> pasteferry.v1.SubscribeRequest++ 16, // 25: pasteferry.v1.DaemonService.ListHistory:input_type -> pasteferry.v1.ListHistoryRequest++ 18, // 26: pasteferry.v1.DaemonService.DeleteHistory:input_type -> pasteferry.v1.DeleteHistoryRequest++ 19, // 27: pasteferry.v1.DaemonService.Fetch:input_type -> pasteferry.v1.FetchRequest++ 20, // 28: pasteferry.v1.DaemonService.ApplyToClipboard:input_type -> pasteferry.v1.ApplyToClipboardRequest++ 41, // 29: pasteferry.v1.DaemonService.GetImagePreview:input_type -> pasteferry.v1.GetImagePreviewRequest++ 6, // 30: pasteferry.v1.DaemonService.ListDevices:input_type -> pasteferry.v1.Empty++ 6, // 31: pasteferry.v1.DaemonService.CreatePairingCode:input_type -> pasteferry.v1.Empty++ 23, // 32: pasteferry.v1.DaemonService.RedeemPairingCode:input_type -> pasteferry.v1.RedeemPairingCodeRequest++ 25, // 33: pasteferry.v1.DaemonService.ConfirmPairing:input_type -> pasteferry.v1.ConfirmPairingRequest++ 29, // 34: pasteferry.v1.DaemonService.Unpair:input_type -> pasteferry.v1.UnpairRequest++ 30, // 35: pasteferry.v1.DaemonService.SetDeviceAddress:input_type -> pasteferry.v1.SetDeviceAddressRequest++ 6, // 36: pasteferry.v1.DaemonService.WatchNearby:input_type -> pasteferry.v1.Empty++ 28, // 37: pasteferry.v1.DaemonService.PairNearby:input_type -> pasteferry.v1.PairNearbyRequest++ 6, // 38: pasteferry.v1.DaemonService.GetConfig:input_type -> pasteferry.v1.Empty++ 31, // 39: pasteferry.v1.DaemonService.UpdateConfig:input_type -> pasteferry.v1.Config++ 6, // 40: pasteferry.v1.DaemonService.GetStatus:input_type -> pasteferry.v1.Empty++ 6, // 41: pasteferry.v1.DaemonService.RequestClipboardPermission:input_type -> pasteferry.v1.Empty++ 6, // 42: pasteferry.v1.DaemonService.RequestLocalNetworkPermission:input_type -> pasteferry.v1.Empty++ 6, // 43: pasteferry.v1.DaemonService.GetNotificationStatus:input_type -> pasteferry.v1.Empty++ 6, // 44: pasteferry.v1.DaemonService.RequestNotificationPermission:input_type -> pasteferry.v1.Empty++ 14, // 45: pasteferry.v1.DaemonService.ActivateNotification:input_type -> pasteferry.v1.NotificationAction++ 6, // 46: pasteferry.v1.DaemonService.GetNetwork:input_type -> pasteferry.v1.Empty++ 38, // 47: pasteferry.v1.DaemonService.ExportDiagnostics:input_type -> pasteferry.v1.ExportDiagnosticsRequest++ 40, // 48: pasteferry.v1.DaemonService.SetVerboseLog:input_type -> pasteferry.v1.SetVerboseLogRequest++ 12, // 49: pasteferry.v1.DaemonService.Subscribe:output_type -> pasteferry.v1.Event++ 17, // 50: pasteferry.v1.DaemonService.ListHistory:output_type -> pasteferry.v1.ListHistoryResponse++ 6, // 51: pasteferry.v1.DaemonService.DeleteHistory:output_type -> pasteferry.v1.Empty++ 6, // 52: pasteferry.v1.DaemonService.Fetch:output_type -> pasteferry.v1.Empty++ 6, // 53: pasteferry.v1.DaemonService.ApplyToClipboard:output_type -> pasteferry.v1.Empty++ 42, // 54: pasteferry.v1.DaemonService.GetImagePreview:output_type -> pasteferry.v1.GetImagePreviewResponse++ 21, // 55: pasteferry.v1.DaemonService.ListDevices:output_type -> pasteferry.v1.ListDevicesResponse++ 22, // 56: pasteferry.v1.DaemonService.CreatePairingCode:output_type -> pasteferry.v1.CreatePairingCodeResponse++ 24, // 57: pasteferry.v1.DaemonService.RedeemPairingCode:output_type -> pasteferry.v1.RedeemPairingCodeResponse++ 6, // 58: pasteferry.v1.DaemonService.ConfirmPairing:output_type -> pasteferry.v1.Empty++ 6, // 59: pasteferry.v1.DaemonService.Unpair:output_type -> pasteferry.v1.Empty++ 6, // 60: pasteferry.v1.DaemonService.SetDeviceAddress:output_type -> pasteferry.v1.Empty++ 27, // 61: pasteferry.v1.DaemonService.WatchNearby:output_type -> pasteferry.v1.NearbyDevices++ 24, // 62: pasteferry.v1.DaemonService.PairNearby:output_type -> pasteferry.v1.RedeemPairingCodeResponse++ 31, // 63: pasteferry.v1.DaemonService.GetConfig:output_type -> pasteferry.v1.Config++ 31, // 64: pasteferry.v1.DaemonService.UpdateConfig:output_type -> pasteferry.v1.Config++ 37, // 65: pasteferry.v1.DaemonService.GetStatus:output_type -> pasteferry.v1.Status++ 6, // 66: pasteferry.v1.DaemonService.RequestClipboardPermission:output_type -> pasteferry.v1.Empty++ 6, // 67: pasteferry.v1.DaemonService.RequestLocalNetworkPermission:output_type -> pasteferry.v1.Empty++ 13, // 68: pasteferry.v1.DaemonService.GetNotificationStatus:output_type -> pasteferry.v1.NotificationStatus++ 13, // 69: pasteferry.v1.DaemonService.RequestNotificationPermission:output_type -> pasteferry.v1.NotificationStatus++ 6, // 70: pasteferry.v1.DaemonService.ActivateNotification:output_type -> pasteferry.v1.Empty++ 33, // 71: pasteferry.v1.DaemonService.GetNetwork:output_type -> pasteferry.v1.NetworkInfo++ 39, // 72: pasteferry.v1.DaemonService.ExportDiagnostics:output_type -> pasteferry.v1.Diagnostics++ 37, // 73: pasteferry.v1.DaemonService.SetVerboseLog:output_type -> pasteferry.v1.Status++ 49, // [49:74] is the sub-list for method output_type++ 24, // [24:49] is the sub-list for method input_type++ 24, // [24:24] is the sub-list for extension type_name++ 24, // [24:24] is the sub-list for extension extendee++ 0, // [0:24] is the sub-list for field type_name}func init() { file_pasteferry_v1_daemon_proto_init() }@@@ -3139,8 -3188,8 +3416,8 @@@ func file_pasteferry_v1_daemon_proto_inFile: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: unsafe.Slice(unsafe.StringData(file_pasteferry_v1_daemon_proto_rawDesc), len(file_pasteferry_v1_daemon_proto_rawDesc)),-- NumEnums: 5,- NumMessages: 34,- NumMessages: 36,++ NumEnums: 6,++ NumMessages: 37,NumExtensions: 0,NumServices: 1,},diff --cc scripts/build.shindex aa282e6,d970782..6ff7c3b--- a/scripts/build.sh+++ b/scripts/build.sh@@@ -14,7 -14,8 +14,8 @@@ set -euo pipefaicd "$(dirname "$0")/.."DIST=dist-VERSION=${VERSION:-2.0.0}+VERSION=${VERSION:-2.1.0}+ APP_BUILD=${APP_BUILD:-$(git rev-parse --short=8 HEAD)}rm -rf "$DIST" && mkdir -p "$DIST"# 支持的最低 macOS 版本,与界面工程的 MACOSX_DEPLOYMENT_TARGET、后台服务的 LSMinimumSystemVersion 一致。diff --cc ui/lib/app_state.dartindex 3317f40,5f5a12d..8105a1f--- a/ui/lib/app_state.dart+++ b/ui/lib/app_state.dart@@@ -188,13 -131,11 +192,14 @@@ class AppState extends ChangeNotifier_status = results[2] as Status;await _loadDevices();+ await refreshNotificationStatus();- _events = conn.client.subscribe(SubscribeRequest()).listen(+ _events = conn.client+ .subscribe(SubscribeRequest())+ .listen(_onEvent,- onError: (Object e) => _scheduleRetry(appL10n.linkConnectionLost(_describe(e))),+ onError: (Object e) =>+ _scheduleRetry(appL10n.linkConnectionLost(_describe(e))),onDone: () => _scheduleRetry(appL10n.linkServiceDisconnected),);diff --cc ui/lib/gen/pasteferry/v1/daemon.pbenum.dartindex 5426e08,af9ec99..f5daf30--- a/ui/lib/gen/pasteferry/v1/daemon.pbenum.dart+++ b/ui/lib/gen/pasteferry/v1/daemon.pbenum.dart@@@ -137,30 -137,35 +137,60 @@@ class ClipboardPermission extends $pb.Pconst ClipboardPermission._(super.value, super.name);}+ class ClipboardWriteOutcome extends $pb.ProtobufEnum {+ static const ClipboardWriteOutcome CLIPBOARD_WRITE_OUTCOME_UNSPECIFIED =+ ClipboardWriteOutcome._(+ 0, _omitEnumNames ? '' : 'CLIPBOARD_WRITE_OUTCOME_UNSPECIFIED');+ static const ClipboardWriteOutcome CLIPBOARD_WRITE_OUTCOME_APPLIED =+ ClipboardWriteOutcome._(+ 1, _omitEnumNames ? '' : 'CLIPBOARD_WRITE_OUTCOME_APPLIED');+ static const ClipboardWriteOutcome CLIPBOARD_WRITE_OUTCOME_PRESERVED =+ ClipboardWriteOutcome._(+ 2, _omitEnumNames ? '' : 'CLIPBOARD_WRITE_OUTCOME_PRESERVED');+ static const ClipboardWriteOutcome CLIPBOARD_WRITE_OUTCOME_FAILED =+ ClipboardWriteOutcome._(+ 3, _omitEnumNames ? '' : 'CLIPBOARD_WRITE_OUTCOME_FAILED');++ static const $core.List<ClipboardWriteOutcome> values =+ <ClipboardWriteOutcome>[+ CLIPBOARD_WRITE_OUTCOME_UNSPECIFIED,+ CLIPBOARD_WRITE_OUTCOME_APPLIED,+ CLIPBOARD_WRITE_OUTCOME_PRESERVED,+ CLIPBOARD_WRITE_OUTCOME_FAILED,+ ];++ static final $core.List<ClipboardWriteOutcome?> _byValue =+ $pb.ProtobufEnum.$_initByValueList(values, 3);+ static ClipboardWriteOutcome? valueOf($core.int value) =>+ value < 0 || value >= _byValue.length ? null : _byValue[value];++ const ClipboardWriteOutcome._(super.value, super.name);+ }++class ServiceMode extends $pb.ProtobufEnum {+ static const ServiceMode SERVICE_MODE_UNSPECIFIED =+ ServiceMode._(0, _omitEnumNames ? '' : 'SERVICE_MODE_UNSPECIFIED');+ static const ServiceMode SERVICE_MODE_LAN =+ ServiceMode._(1, _omitEnumNames ? '' : 'SERVICE_MODE_LAN');+ static const ServiceMode SERVICE_MODE_OFFICIAL =+ ServiceMode._(2, _omitEnumNames ? '' : 'SERVICE_MODE_OFFICIAL');+ static const ServiceMode SERVICE_MODE_CUSTOM =+ ServiceMode._(3, _omitEnumNames ? '' : 'SERVICE_MODE_CUSTOM');++ static const $core.List<ServiceMode> values = <ServiceMode>[+ SERVICE_MODE_UNSPECIFIED,+ SERVICE_MODE_LAN,+ SERVICE_MODE_OFFICIAL,+ SERVICE_MODE_CUSTOM,+ ];++ static final $core.List<ServiceMode?> _byValue =+ $pb.ProtobufEnum.$_initByValueList(values, 3);+ static ServiceMode? valueOf($core.int value) =>+ value < 0 || value >= _byValue.length ? null : _byValue[value];++ const ServiceMode._(super.value, super.name);+}+const $core.bool _omitEnumNames =$core.bool.fromEnvironment('protobuf.omit_enum_names');diff --cc ui/lib/gen/pasteferry/v1/daemon.pbjson.dartindex 719835b,f762140..a010e02--- a/ui/lib/gen/pasteferry/v1/daemon.pbjson.dart+++ b/ui/lib/gen/pasteferry/v1/daemon.pbjson.dart@@@ -91,23 -91,24 +91,41 @@@ final $typed_data.Uint8List clipboardPe'ohQ0xJUEJPQVJEX1BFUk1JU1NJT05fQUxXQVlTX0FMTE9XEAQSJAogQ0xJUEJPQVJEX1BFUk1J''U1NJT05fQUxXQVlTX0RFTlkQBQ==');+ @$core.Deprecated('Use clipboardWriteOutcomeDescriptor instead')+ const ClipboardWriteOutcome$json = {+ '1': 'ClipboardWriteOutcome',+ '2': [+ {'1': 'CLIPBOARD_WRITE_OUTCOME_UNSPECIFIED', '2': 0},+ {'1': 'CLIPBOARD_WRITE_OUTCOME_APPLIED', '2': 1},+ {'1': 'CLIPBOARD_WRITE_OUTCOME_PRESERVED', '2': 2},+ {'1': 'CLIPBOARD_WRITE_OUTCOME_FAILED', '2': 3},+ ],+ };++ /// Descriptor for `ClipboardWriteOutcome`. Decode as a `google.protobuf.EnumDescriptorProto`.+ final $typed_data.Uint8List clipboardWriteOutcomeDescriptor = $convert.base64Decode(+ 'ChVDbGlwYm9hcmRXcml0ZU91dGNvbWUSJwojQ0xJUEJPQVJEX1dSSVRFX09VVENPTUVfVU5TUE'+ 'VDSUZJRUQQABIjCh9DTElQQk9BUkRfV1JJVEVfT1VUQ09NRV9BUFBMSUVEEAESJQohQ0xJUEJP'+ 'QVJEX1dSSVRFX09VVENPTUVfUFJFU0VSVkVEEAISIgoeQ0xJUEJPQVJEX1dSSVRFX09VVENPTU'+ 'VfRkFJTEVEEAM=');++@$core.Deprecated('Use serviceModeDescriptor instead')+const ServiceMode$json = {+ '1': 'ServiceMode',+ '2': [+ {'1': 'SERVICE_MODE_UNSPECIFIED', '2': 0},+ {'1': 'SERVICE_MODE_LAN', '2': 1},+ {'1': 'SERVICE_MODE_OFFICIAL', '2': 2},+ {'1': 'SERVICE_MODE_CUSTOM', '2': 3},+ ],+};++/// Descriptor for `ServiceMode`. Decode as a `google.protobuf.EnumDescriptorProto`.+final $typed_data.Uint8List serviceModeDescriptor = $convert.base64Decode(+ 'CgtTZXJ2aWNlTW9kZRIcChhTRVJWSUNFX01PREVfVU5TUEVDSUZJRUQQABIUChBTRVJWSUNFX0'+ '1PREVfTEFOEAESGQoVU0VSVklDRV9NT0RFX09GRklDSUFMEAISFwoTU0VSVklDRV9NT0RFX0NV'+ 'U1RPTRAD');+@$core.Deprecated('Use emptyDescriptor instead')const Empty$json = {'1': 'Empty',diff --cc ui/lib/l10n/app_en.arbindex e4dae00,dbae803..d8dfd52--- a/ui/lib/l10n/app_en.arb+++ b/ui/lib/l10n/app_en.arb@@@ -413,9 -509,12 +413,9 @@@"language": "Language","languageSystem": "System","sync": "Sync",- "syncFootnote": "Items under the limit are pushed to your other devices as you copy. Larger ones sync as a record; receive them from History when you need them, so big files don't waste bandwidth or disk space.","autoSyncLimit": "Auto-sync limit",- "autoSyncLimitDesc": "Pull larger items manually from History",- "autoSyncLimitDesc": "Larger files must be received before pasting",++ "autoSyncLimitDesc": "Receive larger items manually from History","autoApply": "Put received items on the clipboard",- "autoApplyDesc": "When off, put them on the clipboard from History yourself","whatToSync": "What to sync","syncFiles": "Files and folders","syncText": "Plain text",@@@ -510,32 -610,5 +510,124 @@@}}},- "svcCanDisable": "You can turn background sync off anytime in Settings."+ "svcCanDisable": "You can turn background sync off anytime in Settings.",+ "officialService": "Official service",+ "useOfficialService": "Use official service",+ "officialServiceDesc": "Sync across networks, direct connections first",+ "officialPrivacy": "Connects to the official service only when enabled and records essential access statistics. Direct connections are tried first; relay access is requested only if they fail. Content, real device names and raw system identifiers are not uploaded.",+ "officialEnableTitle": "Enable official Internet service?",+ "officialSwitchConfirm": "This switches away from your custom server. Its saved address will be retained.",+ "customServer": "Custom server",+ "saveAndConnect": "Save and connect",+ "officialUnused": "Relay not requested; allowance not yet verified",+ "officialUnavailable": "Usage is unavailable; existing data may be out of date",+ "officialQuotaTitle": "Daily relay allowance used up",+ "officialQuotaBody": "Official relay is paused until the daily reset at midnight Beijing time. LAN and direct Internet connections remain available. Failed transfers can be retried later.",+ "officialPeerQuota": "The peer has no relay allowance left. Direct connections remain available.",+ "officialPaused": "Official relay is unavailable. Direct connections remain available.",+ "officialViewUsage": "View usage",+ "officialAcknowledge": "Got it",+ "officialToday": "Today's relay usage",+ "officialUsed": "Used",+ "officialRemaining": "Remaining",+ "officialDailyLimit": "Daily allowance",+ "officialUpload": "Upload",+ "officialDownload": "Download",+ "officialReset": "Reset time (Beijing)",+ "officialUpdated": "Last updated",+ "officialDeviceID": "Device ID",+ "officialWarning": "90% of the daily relay allowance has been used. Direct connections do not consume it.",- "officialAccounting": "Upload and download combined, including encryption overhead. Only official relay usage is measured; direct content and traffic are not recorded."++ "officialAccounting": "Upload and download combined, including encryption overhead. Only official relay usage is measured; direct content and traffic are not recorded.",++ "buildDetails": "UI {uiVersion} · Service {serviceVersion} · Build {build}",++ "@buildDetails": {++ "placeholders": {++ "uiVersion": {++ "type": "String"++ },++ "serviceVersion": {++ "type": "String"++ },++ "build": {++ "type": "String"++ }++ }++ },++ "notReceived": "Not received — receive before pasting",++ "receivedPreserved": "Received; use Copy to clipboard when ready",++ "clipboardWriteFailed": "Received, but the clipboard could not be updated",++ "receivingStatus": "Receiving…",++ "largeFileNotifications": "Large file reminders",++ "notificationsAllowed": "Notifications are enabled. Progress is shown in History.",++ "notificationsNotRequested": "Enable notifications so large files do not wait silently. You can always receive them from History.",++ "notificationsDenied": "Notifications are blocked in system settings. Receive pending items from History.",++ "notificationsUnknown": "Your desktop controls notification delivery and Do Not Disturb. Receive items from History if no reminder appears.",++ "notificationsUnavailable": "System notifications are unavailable. Receive large files from History.",++ "enableNotifications": "Enable reminders",++ "notificationSettings": "Notification settings",++ "notifyPendingTitle": "Receive to paste",++ "notifyPendingBody": "{device} · {name} · {size}\nReceive this item before pasting. You can also receive it from History.",++ "@notifyPendingBody": {++ "placeholders": {++ "device": {++ "type": "String"++ },++ "name": {++ "type": "String"++ },++ "size": {++ "type": "String"++ }++ }++ },++ "notifyReceivingTitle": "Receiving…",++ "notifyReceivingBody": "{name}\nSee History for progress.",++ "@notifyReceivingBody": {++ "placeholders": {++ "name": {++ "type": "String"++ }++ }++ },++ "notifyReadyTitle": "Ready to paste",++ "notifyReadyBody": "{name}\nReceived and placed on the clipboard.",++ "@notifyReadyBody": {++ "placeholders": {++ "name": {++ "type": "String"++ }++ }++ },++ "notifyReceivedTitle": "Received",++ "notifyReceivedBody": "{name}\nYour clipboard was kept. Use Copy to clipboard when ready; this is also available in History.",++ "@notifyReceivedBody": {++ "placeholders": {++ "name": {++ "type": "String"++ }++ }++ },++ "notifyFailedTitle": "Could not receive",++ "notifyFailedBody": "{name}\n{error}\nTry again from this notification or History.",++ "@notifyFailedBody": {++ "placeholders": {++ "name": {++ "type": "String"++ },++ "error": {++ "type": "String"++ }++ }++ },++ "notifyClipboardFailedTitle": "Received; clipboard was not updated",++ "notifyClipboardFailedBody": "{name}\n{error}\nUse Copy to clipboard to try again, here or in History.",++ "@notifyClipboardFailedBody": {++ "placeholders": {++ "name": {++ "type": "String"++ },++ "error": {++ "type": "String"++ }++ }++ }}diff --cc ui/lib/l10n/app_ja.arbindex de33a1b,2e76c44..0556816--- a/ui/lib/l10n/app_ja.arb+++ b/ui/lib/l10n/app_ja.arb@@@ -243,32 -276,5 +243,57 @@@"svcDevBodyLinux": "開発ビルドのため pasteferryd がありません。ソースフォルダで ./scripts/package-linux.sh を実行して完全版をビルドしてください。","svcDevBodyMac": "開発ビルドのためバックグラウンドサービスが含まれていません。ソースフォルダで ./scripts/install-macos.sh を実行してインストールしてください。","svcLogPath": "ログ:{path}",- "svcCanDisable": "バックグラウンド同期は「設定」でいつでもオフにできます。"+ "svcCanDisable": "バックグラウンド同期は「設定」でいつでもオフにできます。",+ "officialService": "公式サービス",+ "useOfficialService": "公式サービスを使う",+ "officialServiceDesc": "別のネットワーク間で同期。直接接続を優先",+ "officialPrivacy": "有効にした場合のみ公式サービスに接続し、必要最小限の接続情報を記録します。まず直接接続を試み、失敗した場合のみ中継を申請します。内容、実際の端末名、元のシステム識別子は送信しません。",+ "officialEnableTitle": "公式インターネットサービスを有効にしますか?",+ "officialSwitchConfirm": "現在のカスタムサーバーから切り替えます。保存済みのアドレスは保持されます。",+ "customServer": "カスタムサーバー",+ "saveAndConnect": "保存して接続",+ "officialUnused": "中継は未申請です。残量は未確認です",+ "officialUnavailable": "使用量を取得できません。表示データは古い可能性があります",+ "officialQuotaTitle": "本日の中継上限に達しました",+ "officialQuotaBody": "公式中継は北京時間の午前0時にリセットされるまで停止します。LANと直接接続は引き続き利用できます。失敗した転送は後で再試行できます。",+ "officialPeerQuota": "相手の中継残量がありません。直接接続は引き続き利用できます",+ "officialPaused": "公式中継は現在利用できません。直接接続は引き続き利用できます",+ "officialViewUsage": "使用量を表示",+ "officialAcknowledge": "確認しました",+ "officialToday": "本日の中継使用量",+ "officialUsed": "使用済み",+ "officialRemaining": "残量",+ "officialDailyLimit": "1日の上限",+ "officialUpload": "アップロード",+ "officialDownload": "ダウンロード",+ "officialReset": "リセット時刻(北京時間)",+ "officialUpdated": "最終更新",+ "officialDeviceID": "端末 ID",+ "officialWarning": "本日の中継上限の90%を使用しました。直接接続ではこの残量は消費しません。",- "officialAccounting": "暗号化の通信量を含む送受信の合計です。公式中継のみ計測し、直接接続の内容や通信量は記録しません。"++ "officialAccounting": "暗号化の通信量を含む送受信の合計です。公式中継のみ計測し、直接接続の内容や通信量は記録しません。",++ "buildDetails": "UI {uiVersion} · サービス {serviceVersion} · ビルド {build}",++ "notReceived": "未受信 — ペーストする前に受信してください",++ "receivedPreserved": "受信済み。クリップボードに入れるとペーストできます",++ "clipboardWriteFailed": "受信済みですが、クリップボードを更新できませんでした",++ "receivingStatus": "受信中…",++ "largeFileNotifications": "大きなファイルの受信通知",++ "notificationsAllowed": "通知は有効です。受信の進捗は履歴で確認できます。",++ "notificationsNotRequested": "大きなファイルの受信待ちを通知します。履歴からいつでも受信できます。",++ "notificationsDenied": "システム設定で通知が無効です。受信待ちの項目は履歴から受信できます。",++ "notificationsUnknown": "通知とおやすみモードはデスクトップで管理されます。通知がない場合は履歴から受信できます。",++ "notificationsUnavailable": "システム通知を利用できません。大きなファイルは履歴から受信してください。",++ "enableNotifications": "通知を有効にする",++ "notificationSettings": "通知設定",++ "notifyPendingTitle": "受信するとペーストできます",++ "notifyPendingBody": "{device} · {name} · {size}\nペーストする前に受信してください。履歴からも受信できます。",++ "notifyReceivingTitle": "受信中…",++ "notifyReceivingBody": "{name}\n進捗は履歴で確認できます。",++ "notifyReadyTitle": "ペーストできます",++ "notifyReadyBody": "{name}\n受信してクリップボードに入れました。",++ "notifyReceivedTitle": "受信しました",++ "notifyReceivedBody": "{name}\n現在のクリップボードは保持しました。クリップボードに入れる操作は履歴からもできます。",++ "notifyFailedTitle": "受信できませんでした",++ "notifyFailedBody": "{name}\n{error}\nこの通知または履歴から再試行できます。",++ "notifyClipboardFailedTitle": "受信済みですがクリップボードを更新できませんでした",++ "notifyClipboardFailedBody": "{name}\n{error}\nこの通知または履歴からクリップボードに入れて再試行できます。"}diff --cc ui/lib/l10n/app_localizations.dartindex d0d8ef6,faa01bd..dc96601--- a/ui/lib/l10n/app_localizations.dart+++ b/ui/lib/l10n/app_localizations.dart@@@ -1205,7 -1391,7 +1205,7 @@@ abstract class AppLocalizations/// No description provided for @autoSyncLimitDesc.////// In en, this message translates to:- /// **'Pull larger items manually from History'**- /// **'Larger files must be received before pasting'**++ /// **'Receive larger items manually from History'**String get autoSyncLimitDesc;/// No description provided for @autoApply.@@@ -1573,168 -1771,6 +1573,318 @@@/// In en, this message translates to:/// **'You can turn background sync off anytime in Settings.'**String get svcCanDisable;++ /// No description provided for @officialService.+ ///+ /// In en, this message translates to:+ /// **'Official service'**+ String get officialService;++ /// No description provided for @useOfficialService.+ ///+ /// In en, this message translates to:+ /// **'Use official service'**+ String get useOfficialService;++ /// No description provided for @officialServiceDesc.+ ///+ /// In en, this message translates to:+ /// **'Sync across networks, direct connections first'**+ String get officialServiceDesc;++ /// No description provided for @officialPrivacy.+ ///+ /// In en, this message translates to:+ /// **'Connects to the official service only when enabled and records essential access statistics. Direct connections are tried first; relay access is requested only if they fail. Content, real device names and raw system identifiers are not uploaded.'**+ String get officialPrivacy;++ /// No description provided for @officialEnableTitle.+ ///+ /// In en, this message translates to:+ /// **'Enable official Internet service?'**+ String get officialEnableTitle;++ /// No description provided for @officialSwitchConfirm.+ ///+ /// In en, this message translates to:+ /// **'This switches away from your custom server. Its saved address will be retained.'**+ String get officialSwitchConfirm;++ /// No description provided for @customServer.+ ///+ /// In en, this message translates to:+ /// **'Custom server'**+ String get customServer;++ /// No description provided for @saveAndConnect.+ ///+ /// In en, this message translates to:+ /// **'Save and connect'**+ String get saveAndConnect;++ /// No description provided for @officialUnused.+ ///+ /// In en, this message translates to:+ /// **'Relay not requested; allowance not yet verified'**+ String get officialUnused;++ /// No description provided for @officialUnavailable.+ ///+ /// In en, this message translates to:+ /// **'Usage is unavailable; existing data may be out of date'**+ String get officialUnavailable;++ /// No description provided for @officialQuotaTitle.+ ///+ /// In en, this message translates to:+ /// **'Daily relay allowance used up'**+ String get officialQuotaTitle;++ /// No description provided for @officialQuotaBody.+ ///+ /// In en, this message translates to:+ /// **'Official relay is paused until the daily reset at midnight Beijing time. LAN and direct Internet connections remain available. Failed transfers can be retried later.'**+ String get officialQuotaBody;++ /// No description provided for @officialPeerQuota.+ ///+ /// In en, this message translates to:+ /// **'The peer has no relay allowance left. Direct connections remain available.'**+ String get officialPeerQuota;++ /// No description provided for @officialPaused.+ ///+ /// In en, this message translates to:+ /// **'Official relay is unavailable. Direct connections remain available.'**+ String get officialPaused;++ /// No description provided for @officialViewUsage.+ ///+ /// In en, this message translates to:+ /// **'View usage'**+ String get officialViewUsage;++ /// No description provided for @officialAcknowledge.+ ///+ /// In en, this message translates to:+ /// **'Got it'**+ String get officialAcknowledge;++ /// No description provided for @officialToday.+ ///+ /// In en, this message translates to:+ /// **'Today\'s relay usage'**+ String get officialToday;++ /// No description provided for @officialUsed.+ ///+ /// In en, this message translates to:+ /// **'Used'**+ String get officialUsed;++ /// No description provided for @officialRemaining.+ ///+ /// In en, this message translates to:+ /// **'Remaining'**+ String get officialRemaining;++ /// No description provided for @officialDailyLimit.+ ///+ /// In en, this message translates to:+ /// **'Daily allowance'**+ String get officialDailyLimit;++ /// No description provided for @officialUpload.+ ///+ /// In en, this message translates to:+ /// **'Upload'**+ String get officialUpload;++ /// No description provided for @officialDownload.+ ///+ /// In en, this message translates to:+ /// **'Download'**+ String get officialDownload;++ /// No description provided for @officialReset.+ ///+ /// In en, this message translates to:+ /// **'Reset time (Beijing)'**+ String get officialReset;++ /// No description provided for @officialUpdated.+ ///+ /// In en, this message translates to:+ /// **'Last updated'**+ String get officialUpdated;++ /// No description provided for @officialDeviceID.+ ///+ /// In en, this message translates to:+ /// **'Device ID'**+ String get officialDeviceID;++ /// No description provided for @officialWarning.+ ///+ /// In en, this message translates to:+ /// **'90% of the daily relay allowance has been used. Direct connections do not consume it.'**+ String get officialWarning;++ /// No description provided for @officialAccounting.+ ///+ /// In en, this message translates to:+ /// **'Upload and download combined, including encryption overhead. Only official relay usage is measured; direct content and traffic are not recorded.'**+ String get officialAccounting;++++ /// No description provided for @buildDetails.++ ///++ /// In en, this message translates to:++ /// **'UI {uiVersion} · Service {serviceVersion} · Build {build}'**++ String buildDetails(String uiVersion, String serviceVersion, String build);++++ /// No description provided for @notReceived.++ ///++ /// In en, this message translates to:++ /// **'Not received — receive before pasting'**++ String get notReceived;++++ /// No description provided for @receivedPreserved.++ ///++ /// In en, this message translates to:++ /// **'Received; use Copy to clipboard when ready'**++ String get receivedPreserved;++++ /// No description provided for @clipboardWriteFailed.++ ///++ /// In en, this message translates to:++ /// **'Received, but the clipboard could not be updated'**++ String get clipboardWriteFailed;++++ /// No description provided for @receivingStatus.++ ///++ /// In en, this message translates to:++ /// **'Receiving…'**++ String get receivingStatus;++++ /// No description provided for @largeFileNotifications.++ ///++ /// In en, this message translates to:++ /// **'Large file reminders'**++ String get largeFileNotifications;++++ /// No description provided for @notificationsAllowed.++ ///++ /// In en, this message translates to:++ /// **'Notifications are enabled. Progress is shown in History.'**++ String get notificationsAllowed;++++ /// No description provided for @notificationsNotRequested.++ ///++ /// In en, this message translates to:++ /// **'Enable notifications so large files do not wait silently. You can always receive them from History.'**++ String get notificationsNotRequested;++++ /// No description provided for @notificationsDenied.++ ///++ /// In en, this message translates to:++ /// **'Notifications are blocked in system settings. Receive pending items from History.'**++ String get notificationsDenied;++++ /// No description provided for @notificationsUnknown.++ ///++ /// In en, this message translates to:++ /// **'Your desktop controls notification delivery and Do Not Disturb. Receive items from History if no reminder appears.'**++ String get notificationsUnknown;++++ /// No description provided for @notificationsUnavailable.++ ///++ /// In en, this message translates to:++ /// **'System notifications are unavailable. Receive large files from History.'**++ String get notificationsUnavailable;++++ /// No description provided for @enableNotifications.++ ///++ /// In en, this message translates to:++ /// **'Enable reminders'**++ String get enableNotifications;++++ /// No description provided for @notificationSettings.++ ///++ /// In en, this message translates to:++ /// **'Notification settings'**++ String get notificationSettings;++++ /// No description provided for @notifyPendingTitle.++ ///++ /// In en, this message translates to:++ /// **'Receive to paste'**++ String get notifyPendingTitle;++++ /// No description provided for @notifyPendingBody.++ ///++ /// In en, this message translates to:++ /// **'{device} · {name} · {size}\nReceive this item before pasting. You can also receive it from History.'**++ String notifyPendingBody(String device, String name, String size);++++ /// No description provided for @notifyReceivingTitle.++ ///++ /// In en, this message translates to:++ /// **'Receiving…'**++ String get notifyReceivingTitle;++++ /// No description provided for @notifyReceivingBody.++ ///++ /// In en, this message translates to:++ /// **'{name}\nSee History for progress.'**++ String notifyReceivingBody(String name);++++ /// No description provided for @notifyReadyTitle.++ ///++ /// In en, this message translates to:++ /// **'Ready to paste'**++ String get notifyReadyTitle;++++ /// No description provided for @notifyReadyBody.++ ///++ /// In en, this message translates to:++ /// **'{name}\nReceived and placed on the clipboard.'**++ String notifyReadyBody(String name);++++ /// No description provided for @notifyReceivedTitle.++ ///++ /// In en, this message translates to:++ /// **'Received'**++ String get notifyReceivedTitle;++++ /// No description provided for @notifyReceivedBody.++ ///++ /// In en, this message translates to:++ /// **'{name}\nYour clipboard was kept. Use Copy to clipboard when ready; this is also available in History.'**++ String notifyReceivedBody(String name);++++ /// No description provided for @notifyFailedTitle.++ ///++ /// In en, this message translates to:++ /// **'Could not receive'**++ String get notifyFailedTitle;++++ /// No description provided for @notifyFailedBody.++ ///++ /// In en, this message translates to:++ /// **'{name}\n{error}\nTry again from this notification or History.'**++ String notifyFailedBody(String name, String error);++++ /// No description provided for @notifyClipboardFailedTitle.++ ///++ /// In en, this message translates to:++ /// **'Received; clipboard was not updated'**++ String get notifyClipboardFailedTitle;++++ /// No description provided for @notifyClipboardFailedBody.++ ///++ /// In en, this message translates to:++ /// **'{name}\n{error}\nUse Copy to clipboard to try again, here or in History.'**++ String notifyClipboardFailedBody(String name, String error);}class _AppLocalizationsDelegatediff --cc ui/lib/l10n/app_localizations_en.dartindex 95ab3e6,cca2ca5..fe5ea1f--- a/ui/lib/l10n/app_localizations_en.dart+++ b/ui/lib/l10n/app_localizations_en.dart@@@ -701,7 -821,8 +701,7 @@@ class AppLocalizationsEn extends AppLocString get autoSyncLimit => 'Auto-sync limit';@override- String get autoSyncLimitDesc => 'Pull larger items manually from History';- String get autoSyncLimitDesc =>- 'Larger files must be received before pasting';++ String get autoSyncLimitDesc => 'Receive larger items manually from History';@overrideString get autoApply => 'Put received items on the clipboard';@@@ -910,95 -1039,4 +910,191 @@@@overrideString get svcCanDisable =>'You can turn background sync off anytime in Settings.';++ @override+ String get officialService => 'Official service';++ @override+ String get useOfficialService => 'Use official service';++ @override+ String get officialServiceDesc =>+ 'Sync across networks, direct connections first';++ @override+ String get officialPrivacy =>+ 'Connects to the official service only when enabled and records essential access statistics. Direct connections are tried first; relay access is requested only if they fail. Content, real device names and raw system identifiers are not uploaded.';++ @override+ String get officialEnableTitle => 'Enable official Internet service?';++ @override+ String get officialSwitchConfirm =>+ 'This switches away from your custom server. Its saved address will be retained.';++ @override+ String get customServer => 'Custom server';++ @override+ String get saveAndConnect => 'Save and connect';++ @override+ String get officialUnused =>+ 'Relay not requested; allowance not yet verified';++ @override+ String get officialUnavailable =>+ 'Usage is unavailable; existing data may be out of date';++ @override+ String get officialQuotaTitle => 'Daily relay allowance used up';++ @override+ String get officialQuotaBody =>+ 'Official relay is paused until the daily reset at midnight Beijing time. LAN and direct Internet connections remain available. Failed transfers can be retried later.';++ @override+ String get officialPeerQuota =>+ 'The peer has no relay allowance left. Direct connections remain available.';++ @override+ String get officialPaused =>+ 'Official relay is unavailable. Direct connections remain available.';++ @override+ String get officialViewUsage => 'View usage';++ @override+ String get officialAcknowledge => 'Got it';++ @override+ String get officialToday => 'Today\'s relay usage';++ @override+ String get officialUsed => 'Used';++ @override+ String get officialRemaining => 'Remaining';++ @override+ String get officialDailyLimit => 'Daily allowance';++ @override+ String get officialUpload => 'Upload';++ @override+ String get officialDownload => 'Download';++ @override+ String get officialReset => 'Reset time (Beijing)';++ @override+ String get officialUpdated => 'Last updated';++ @override+ String get officialDeviceID => 'Device ID';++ @override+ String get officialWarning =>+ '90% of the daily relay allowance has been used. Direct connections do not consume it.';++ @override+ String get officialAccounting =>+ 'Upload and download combined, including encryption overhead. Only official relay usage is measured; direct content and traffic are not recorded.';++++ @override++ String buildDetails(String uiVersion, String serviceVersion, String build) {++ return 'UI $uiVersion · Service $serviceVersion · Build $build';++ }++++ @override++ String get notReceived => 'Not received — receive before pasting';++++ @override++ String get receivedPreserved => 'Received; use Copy to clipboard when ready';++++ @override++ String get clipboardWriteFailed =>++ 'Received, but the clipboard could not be updated';++++ @override++ String get receivingStatus => 'Receiving…';++++ @override++ String get largeFileNotifications => 'Large file reminders';++++ @override++ String get notificationsAllowed =>++ 'Notifications are enabled. Progress is shown in History.';++++ @override++ String get notificationsNotRequested =>++ 'Enable notifications so large files do not wait silently. You can always receive them from History.';++++ @override++ String get notificationsDenied =>++ 'Notifications are blocked in system settings. Receive pending items from History.';++++ @override++ String get notificationsUnknown =>++ 'Your desktop controls notification delivery and Do Not Disturb. Receive items from History if no reminder appears.';++++ @override++ String get notificationsUnavailable =>++ 'System notifications are unavailable. Receive large files from History.';++++ @override++ String get enableNotifications => 'Enable reminders';++++ @override++ String get notificationSettings => 'Notification settings';++++ @override++ String get notifyPendingTitle => 'Receive to paste';++++ @override++ String notifyPendingBody(String device, String name, String size) {++ return '$device · $name · $size\nReceive this item before pasting. You can also receive it from History.';++ }++++ @override++ String get notifyReceivingTitle => 'Receiving…';++++ @override++ String notifyReceivingBody(String name) {++ return '$name\nSee History for progress.';++ }++++ @override++ String get notifyReadyTitle => 'Ready to paste';++++ @override++ String notifyReadyBody(String name) {++ return '$name\nReceived and placed on the clipboard.';++ }++++ @override++ String get notifyReceivedTitle => 'Received';++++ @override++ String notifyReceivedBody(String name) {++ return '$name\nYour clipboard was kept. Use Copy to clipboard when ready; this is also available in History.';++ }++++ @override++ String get notifyFailedTitle => 'Could not receive';++++ @override++ String notifyFailedBody(String name, String error) {++ return '$name\n$error\nTry again from this notification or History.';++ }++++ @override++ String get notifyClipboardFailedTitle =>++ 'Received; clipboard was not updated';++++ @override++ String notifyClipboardFailedBody(String name, String error) {++ return '$name\n$error\nUse Copy to clipboard to try again, here or in History.';++ }}diff --cc ui/lib/l10n/app_localizations_ja.dartindex 2053ba0,daa9413..2f6d871--- a/ui/lib/l10n/app_localizations_ja.dart+++ b/ui/lib/l10n/app_localizations_ja.dart@@@ -831,88 -953,4 +831,178 @@@ class AppLocalizationsJa extends AppLoc@overrideString get svcCanDisable => 'バックグラウンド同期は「設定」でいつでもオフにできます。';++ @override+ String get officialService => '公式サービス';++ @override+ String get useOfficialService => '公式サービスを使う';++ @override+ String get officialServiceDesc => '別のネットワーク間で同期。直接接続を優先';++ @override+ String get officialPrivacy =>+ '有効にした場合のみ公式サービスに接続し、必要最小限の接続情報を記録します。まず直接接続を試み、失敗した場合のみ中継を申請します。内容、実際の端末名、元のシステム識別子は送信しません。';++ @override+ String get officialEnableTitle => '公式インターネットサービスを有効にしますか?';++ @override+ String get officialSwitchConfirm => '現在のカスタムサーバーから切り替えます。保存済みのアドレスは保持されます。';++ @override+ String get customServer => 'カスタムサーバー';++ @override+ String get saveAndConnect => '保存して接続';++ @override+ String get officialUnused => '中継は未申請です。残量は未確認です';++ @override+ String get officialUnavailable => '使用量を取得できません。表示データは古い可能性があります';++ @override+ String get officialQuotaTitle => '本日の中継上限に達しました';++ @override+ String get officialQuotaBody =>+ '公式中継は北京時間の午前0時にリセットされるまで停止します。LANと直接接続は引き続き利用できます。失敗した転送は後で再試行できます。';++ @override+ String get officialPeerQuota => '相手の中継残量がありません。直接接続は引き続き利用できます';++ @override+ String get officialPaused => '公式中継は現在利用できません。直接接続は引き続き利用できます';++ @override+ String get officialViewUsage => '使用量を表示';++ @override+ String get officialAcknowledge => '確認しました';++ @override+ String get officialToday => '本日の中継使用量';++ @override+ String get officialUsed => '使用済み';++ @override+ String get officialRemaining => '残量';++ @override+ String get officialDailyLimit => '1日の上限';++ @override+ String get officialUpload => 'アップロード';++ @override+ String get officialDownload => 'ダウンロード';++ @override+ String get officialReset => 'リセット時刻(北京時間)';++ @override+ String get officialUpdated => '最終更新';++ @override+ String get officialDeviceID => '端末 ID';++ @override+ String get officialWarning => '本日の中継上限の90%を使用しました。直接接続ではこの残量は消費しません。';++ @override+ String get officialAccounting =>+ '暗号化の通信量を含む送受信の合計です。公式中継のみ計測し、直接接続の内容や通信量は記録しません。';++++ @override++ String buildDetails(String uiVersion, String serviceVersion, String build) {++ return 'UI $uiVersion · サービス $serviceVersion · ビルド $build';++ }++++ @override++ String get notReceived => '未受信 — ペーストする前に受信してください';++++ @override++ String get receivedPreserved => '受信済み。クリップボードに入れるとペーストできます';++++ @override++ String get clipboardWriteFailed => '受信済みですが、クリップボードを更新できませんでした';++++ @override++ String get receivingStatus => '受信中…';++++ @override++ String get largeFileNotifications => '大きなファイルの受信通知';++++ @override++ String get notificationsAllowed => '通知は有効です。受信の進捗は履歴で確認できます。';++++ @override++ String get notificationsNotRequested => '大きなファイルの受信待ちを通知します。履歴からいつでも受信できます。';++++ @override++ String get notificationsDenied => 'システム設定で通知が無効です。受信待ちの項目は履歴から受信できます。';++++ @override++ String get notificationsUnknown =>++ '通知とおやすみモードはデスクトップで管理されます。通知がない場合は履歴から受信できます。';++++ @override++ String get notificationsUnavailable => 'システム通知を利用できません。大きなファイルは履歴から受信してください。';++++ @override++ String get enableNotifications => '通知を有効にする';++++ @override++ String get notificationSettings => '通知設定';++++ @override++ String get notifyPendingTitle => '受信するとペーストできます';++++ @override++ String notifyPendingBody(String device, String name, String size) {++ return '$device · $name · $size\nペーストする前に受信してください。履歴からも受信できます。';++ }++++ @override++ String get notifyReceivingTitle => '受信中…';++++ @override++ String notifyReceivingBody(String name) {++ return '$name\n進捗は履歴で確認できます。';++ }++++ @override++ String get notifyReadyTitle => 'ペーストできます';++++ @override++ String notifyReadyBody(String name) {++ return '$name\n受信してクリップボードに入れました。';++ }++++ @override++ String get notifyReceivedTitle => '受信しました';++++ @override++ String notifyReceivedBody(String name) {++ return '$name\n現在のクリップボードは保持しました。クリップボードに入れる操作は履歴からもできます。';++ }++++ @override++ String get notifyFailedTitle => '受信できませんでした';++++ @override++ String notifyFailedBody(String name, String error) {++ return '$name\n$error\nこの通知または履歴から再試行できます。';++ }++++ @override++ String get notifyClipboardFailedTitle => '受信済みですがクリップボードを更新できませんでした';++++ @override++ String notifyClipboardFailedBody(String name, String error) {++ return '$name\n$error\nこの通知または履歴からクリップボードに入れて再試行できます。';++ }}diff --cc ui/lib/l10n/app_localizations_zh.dartindex 645f03a,bb2bead..53f9646--- a/ui/lib/l10n/app_localizations_zh.dart+++ b/ui/lib/l10n/app_localizations_zh.dart@@@ -622,7 -733,7 +622,7 @@@ class AppLocalizationsZh extends AppLocString get autoSyncLimit => '自动同步上限';@override- String get autoSyncLimitDesc => '超出上限后,在复制记录中手动拉取';- String get autoSyncLimitDesc => '超过这个大小的文件改为手动接收';++ String get autoSyncLimitDesc => '超出上限后,在复制记录中手动接收';@overrideString get autoApply => '收到后直接写入剪贴板';@@@ -825,93 -943,100 +825,182 @@@@overrideString get svcCanDisable => '随时可以在「设置」中停用后台同步。';-}-/// The translations for Chinese, as used in Hong Kong, using the Han script (`zh_Hant_HK`).-class AppLocalizationsZhHantHk extends AppLocalizationsZh {- AppLocalizationsZhHantHk() : super('zh_Hant_HK');+ @override+ String get officialService => '官方服务';++ @override+ String get useOfficialService => '使用官方服务';++ @override+ String get officialServiceDesc => '跨网络同步,优先直连';++ @override+ String get officialPrivacy =>+ '仅开启后连接官方服务并统计必要接入信息。先尝试直连,失败才申请中转;不上传内容、真实设备名或原始系统标识。';++ @override+ String get officialEnableTitle => '启用官方公网服务?';++ @override+ String get officialSwitchConfirm => '这会切换当前自定义服务器,已保存的地址仍会保留。';++ @override+ String get customServer => '自定义服务器';++ @override+ String get saveAndConnect => '保存并连接';++ @override+ String get officialUnused => '尚未申请中转,余额待核验';++ @override+ String get officialUnavailable => '用量暂不可用,已有数据可能过期';++ @override+ String get officialQuotaTitle => '今日中转额度已用完';++ @override+ String get officialQuotaBody => '官方中转已暂停,北京时间零点重置。局域网和公网直连仍可使用;传输失败时可稍后重试。';++ @override+ String get officialPeerQuota => '对端中转额度不足,直连仍可使用';++ @override+ String get officialPaused => '官方中转暂不可用,直连仍可使用';++ @override+ String get officialViewUsage => '查看用量';++ @override+ String get officialAcknowledge => '知道了';++ @override+ String get officialToday => '今日中转用量';++ @override+ String get officialUsed => '已使用';++ @override+ String get officialRemaining => '剩余额度';++ @override+ String get officialDailyLimit => '每日额度';++ @override+ String get officialUpload => '上传';++ @override+ String get officialDownload => '下载';++ @override+ String get officialReset => '重置时间(北京时间)';++ @override+ String get officialUpdated => '最后更新';++ @override+ String get officialDeviceID => '设备 ID';++ @override+ String get officialWarning => '今日中转额度已使用 90%,直连不消耗此额度。';++ @override+ String get officialAccounting => '上下行合计,包含加密传输开销;只统计官方中转,不统计直连内容或流量。';++ @override+ String buildDetails(String uiVersion, String serviceVersion, String build) {- return '介面 $uiVersion · 背景服務 $serviceVersion · 版本識別 $build';++ return '界面 $uiVersion · 后台 $serviceVersion · 构建 $build';+ }++ @override- String get notReceived => '尚未接收,暫不可貼上';++ String get notReceived => '尚未接收,暂不可粘贴';++ @override- String get receivedPreserved => '已接收,按放入剪貼簿後即可貼上';++ String get receivedPreserved => '已接收,点击放入剪贴板后可粘贴';++ @override- String get clipboardWriteFailed => '已接收,但無法寫入剪貼簿';++ String get clipboardWriteFailed => '已接收,但未能写入剪贴板';++ @override+ String get receivingStatus => '正在接收…';++ @override- String get largeFileNotifications => '大檔案接收提醒';++ String get largeFileNotifications => '大文件接收提醒';++ @override- String get notificationsAllowed => '已允許系統通知,接收進度可在複製記錄中查看。';++ String get notificationsAllowed => '已允许系统通知,接收进度在复制记录中查看。';++ @override- String get notificationsNotRequested => '開啟系統通知,避免大檔案等待接收時沒有提示;亦可隨時從複製記錄接收。';++ String get notificationsNotRequested => '开启系统通知,避免大文件等待接收时没有提示;也可随时从复制记录接收。';++ @override- String get notificationsDenied => '系統通知已關閉,請在系統設定中開啟;待接收內容仍可從複製記錄接收。';++ String get notificationsDenied => '系统通知已关闭,请在系统设置中开启;待接收内容仍可从复制记录接收。';++ @override- String get notificationsUnknown => '通知顯示和勿擾由系統控制;未看到提示時,可在複製記錄中接收。';++ String get notificationsUnknown => '通知显示和勿扰由系统控制;未看到提醒时,可在复制记录中接收。';++ @override- String get notificationsUnavailable => '系統通知暫時無法使用,請從複製記錄接收大檔案。';++ String get notificationsUnavailable => '系统通知暂不可用,请从复制记录接收大文件。';++ @override- String get enableNotifications => '開啟提醒';++ String get enableNotifications => '开启提醒';++ @override- String get notificationSettings => '通知設定';++ String get notificationSettings => '通知设置';++ @override- String get notifyPendingTitle => '接收後即可貼上';++ String get notifyPendingTitle => '接收后即可粘贴';++ @override+ String notifyPendingBody(String device, String name, String size) {- return '$device · $name · $size\n尚未接收,暫不可貼上。亦可從複製記錄接收。';++ return '$device · $name · $size\n尚未接收,暂不可粘贴。也可从复制记录接收。';+ }++ @override+ String get notifyReceivingTitle => '正在接收…';++ @override+ String notifyReceivingBody(String name) {- return '$name\n可在複製記錄查看接收進度。';++ return '$name\n可在复制记录查看接收进度。';+ }++ @override- String get notifyReadyTitle => '已就緒,可以貼上';++ String get notifyReadyTitle => '已就绪,可以粘贴';++ @override+ String notifyReadyBody(String name) {- return '$name\n已接收並放入剪貼簿。';++ return '$name\n已接收并放入剪贴板。';+ }++ @override+ String get notifyReceivedTitle => '已接收';++ @override+ String notifyReceivedBody(String name) {- return '$name\n已保留目前剪貼簿,按放入剪貼簿後即可貼上,亦可從複製記錄操作。';++ return '$name\n已保留当前剪贴板,点击放入剪贴板后可粘贴,也可从复制记录操作。';+ }++ @override- String get notifyFailedTitle => '接收失敗';++ String get notifyFailedTitle => '接收失败';++ @override+ String notifyFailedBody(String name, String error) {- return '$name\n$error\n可從此通知或複製記錄重試。';++ return '$name\n$error\n可从此通知或复制记录重试。';+ }++ @override- String get notifyClipboardFailedTitle => '已接收,但無法寫入剪貼簿';++ String get notifyClipboardFailedTitle => '已接收,但未能写入剪贴板';++ @override+ String notifyClipboardFailedBody(String name, String error) {- return '$name\n$error\n可從此通知或複製記錄重新放入剪貼簿。';++ return '$name\n$error\n可从此通知或复制记录重新放入剪贴板。';+ }+}++/// The translations for Chinese, as used in Hong Kong, using the Han script (`zh_Hant_HK`).+class AppLocalizationsZhHantHk extends AppLocalizationsZh {+ AppLocalizationsZhHantHk() : super('zh_Hant_HK');@overrideString get appName => '隔空貼';@@@ -1527,7 -1674,7 +1616,7 @@@String get autoSyncLimit => '自動同步上限';@override- String get autoSyncLimitDesc => '超出上限後,在複製記錄中手動拉取';- String get autoSyncLimitDesc => '超過這個大小的檔案改為手動接收';++ String get autoSyncLimitDesc => '超出上限後,在複製記錄中手動接收';@overrideString get autoApply => '收到後直接寫入剪貼簿';@@@ -1730,93 -1884,100 +1819,182 @@@@overrideString get svcCanDisable => '隨時可以在「設定」中停用背景同步。';-}-/// The translations for Chinese, as used in Taiwan, using the Han script (`zh_Hant_TW`).-class AppLocalizationsZhHantTw extends AppLocalizationsZh {- AppLocalizationsZhHantTw() : super('zh_Hant_TW');+ @override+ String get officialService => '官方服務';++ @override+ String get useOfficialService => '使用官方服務';++ @override+ String get officialServiceDesc => '跨網絡同步,優先直連';++ @override+ String get officialPrivacy =>+ '只在啟用後連接官方服務並統計必要連線資料。先嘗試直連,失敗才申請中轉;不傳送內容、真實裝置名稱或原始系統識別碼。';++ @override+ String get officialEnableTitle => '啟用官方公網服務?';++ @override+ String get officialSwitchConfirm => '這會切換目前的自訂伺服器,已儲存的地址仍會保留。';++ @override+ String get customServer => '自訂伺服器';++ @override+ String get saveAndConnect => '儲存並連接';++ @override+ String get officialUnused => '尚未申請中轉,餘額待確認';++ @override+ String get officialUnavailable => '用量暫時無法取得,現有資料可能過期';++ @override+ String get officialQuotaTitle => '今日中轉額度已用完';++ @override+ String get officialQuotaBody => '官方中轉已暫停,北京時間午夜重設。區域網絡和公網直連仍可使用;傳輸失敗時可稍後重試。';++ @override+ String get officialPeerQuota => '對方中轉額度不足,直連仍可使用';++ @override+ String get officialPaused => '官方中轉暫時無法使用,直連仍可使用';++ @override+ String get officialViewUsage => '查看用量';++ @override+ String get officialAcknowledge => '知道了';++ @override+ String get officialToday => '今日中轉用量';++ @override+ String get officialUsed => '已使用';++ @override+ String get officialRemaining => '剩餘額度';++ @override+ String get officialDailyLimit => '每日額度';++ @override+ String get officialUpload => '上傳';++ @override+ String get officialDownload => '下載';++ @override+ String get officialReset => '重設時間(北京時間)';++ @override+ String get officialUpdated => '上次更新';++ @override+ String get officialDeviceID => '裝置 ID';++ @override+ String get officialWarning => '今日中轉額度已使用 90%,直連不消耗此額度。';++ @override+ String get officialAccounting => '上下行合計,包含加密傳輸開銷;只統計官方中轉,不統計直連內容或流量。';++ @override+ String buildDetails(String uiVersion, String serviceVersion, String build) {- return '介面 $uiVersion · 背景服務 $serviceVersion · 建置 $build';++ return '介面 $uiVersion · 背景服務 $serviceVersion · 版本識別 $build';+ }++ @override+ String get notReceived => '尚未接收,暫不可貼上';++ @override- String get receivedPreserved => '已接收,點選放入剪貼簿後即可貼上';++ String get receivedPreserved => '已接收,按放入剪貼簿後即可貼上';++ @override+ String get clipboardWriteFailed => '已接收,但無法寫入剪貼簿';++ @override+ String get receivingStatus => '正在接收…';++ @override+ String get largeFileNotifications => '大檔案接收提醒';++ @override+ String get notificationsAllowed => '已允許系統通知,接收進度可在複製記錄中查看。';++ @override- String get notificationsNotRequested => '開啟系統通知,避免大檔案等待接收時沒有提醒;也可隨時從複製記錄接收。';++ String get notificationsNotRequested => '開啟系統通知,避免大檔案等待接收時沒有提示;亦可隨時從複製記錄接收。';++ @override+ String get notificationsDenied => '系統通知已關閉,請在系統設定中開啟;待接收內容仍可從複製記錄接收。';++ @override- String get notificationsUnknown => '通知顯示和勿擾由系統控制;未看到提醒時,可在複製記錄中接收。';++ String get notificationsUnknown => '通知顯示和勿擾由系統控制;未看到提示時,可在複製記錄中接收。';++ @override+ String get notificationsUnavailable => '系統通知暫時無法使用,請從複製記錄接收大檔案。';++ @override+ String get enableNotifications => '開啟提醒';++ @override+ String get notificationSettings => '通知設定';++ @override+ String get notifyPendingTitle => '接收後即可貼上';++ @override+ String notifyPendingBody(String device, String name, String size) {- return '$device · $name · $size\n尚未接收,暫不可貼上。也可從複製記錄接收。';++ return '$device · $name · $size\n尚未接收,暫不可貼上。亦可從複製記錄接收。';+ }++ @override+ String get notifyReceivingTitle => '正在接收…';++ @override+ String notifyReceivingBody(String name) {+ return '$name\n可在複製記錄查看接收進度。';+ }++ @override+ String get notifyReadyTitle => '已就緒,可以貼上';++ @override+ String notifyReadyBody(String name) {+ return '$name\n已接收並放入剪貼簿。';+ }++ @override+ String get notifyReceivedTitle => '已接收';++ @override+ String notifyReceivedBody(String name) {- return '$name\n已保留目前剪貼簿,點選放入剪貼簿後即可貼上,也可從複製記錄操作。';++ return '$name\n已保留目前剪貼簿,按放入剪貼簿後即可貼上,亦可從複製記錄操作。';+ }++ @override+ String get notifyFailedTitle => '接收失敗';++ @override+ String notifyFailedBody(String name, String error) {+ return '$name\n$error\n可從此通知或複製記錄重試。';+ }++ @override+ String get notifyClipboardFailedTitle => '已接收,但無法寫入剪貼簿';++ @override+ String notifyClipboardFailedBody(String name, String error) {+ return '$name\n$error\n可從此通知或複製記錄重新放入剪貼簿。';+ }+}++/// The translations for Chinese, as used in Taiwan, using the Han script (`zh_Hant_TW`).+class AppLocalizationsZhHantTw extends AppLocalizationsZh {+ AppLocalizationsZhHantTw() : super('zh_Hant_TW');@overrideString get appName => '隔空貼';@@@ -2432,7 -2615,7 +2610,7 @@@String get autoSyncLimit => '自動同步上限';@override- String get autoSyncLimitDesc => '超過上限後,在複製記錄中手動拉取';- String get autoSyncLimitDesc => '超過這個大小的檔案改為手動接收';++ String get autoSyncLimitDesc => '超過上限後,在複製記錄中手動接收';@overrideString get autoApply => '收到後直接寫入剪貼簿';@@@ -2635,86 -2825,4 +2813,175 @@@@overrideString get svcCanDisable => '隨時可以在「設定」中停用背景同步。';++ @override+ String get officialService => '官方服務';++ @override+ String get useOfficialService => '使用官方服務';++ @override+ String get officialServiceDesc => '跨網路同步,優先直連';++ @override+ String get officialPrivacy =>+ '僅開啟後連線官方服務並統計必要連線資訊。先嘗試直連,失敗才申請中繼;不傳送內容、真實裝置名稱或原始系統識別碼。';++ @override+ String get officialEnableTitle => '啟用官方公網服務?';++ @override+ String get officialSwitchConfirm => '這會切換目前的自訂伺服器,已儲存的位址仍會保留。';++ @override+ String get customServer => '自訂伺服器';++ @override+ String get saveAndConnect => '儲存並連線';++ @override+ String get officialUnused => '尚未申請中繼,餘額待確認';++ @override+ String get officialUnavailable => '用量暫時無法取得,現有資料可能過期';++ @override+ String get officialQuotaTitle => '今日中繼額度已用完';++ @override+ String get officialQuotaBody => '官方中繼已暫停,北京時間午夜重設。區域網路和公網直連仍可使用;傳輸失敗時可稍後重試。';++ @override+ String get officialPeerQuota => '對方中繼額度不足,直連仍可使用';++ @override+ String get officialPaused => '官方中繼暫時無法使用,直連仍可使用';++ @override+ String get officialViewUsage => '查看用量';++ @override+ String get officialAcknowledge => '知道了';++ @override+ String get officialToday => '今日中繼用量';++ @override+ String get officialUsed => '已使用';++ @override+ String get officialRemaining => '剩餘額度';++ @override+ String get officialDailyLimit => '每日額度';++ @override+ String get officialUpload => '上傳';++ @override+ String get officialDownload => '下載';++ @override+ String get officialReset => '重設時間(北京時間)';++ @override+ String get officialUpdated => '上次更新';++ @override+ String get officialDeviceID => '裝置 ID';++ @override+ String get officialWarning => '今日中繼額度已使用 90%,直連不消耗此額度。';++ @override+ String get officialAccounting => '上下行合計,包含加密傳輸開銷;僅統計官方中繼,不統計直連內容或流量。';++++ @override++ String buildDetails(String uiVersion, String serviceVersion, String build) {++ return '介面 $uiVersion · 背景服務 $serviceVersion · 建置 $build';++ }++++ @override++ String get notReceived => '尚未接收,暫不可貼上';++++ @override++ String get receivedPreserved => '已接收,點選放入剪貼簿後即可貼上';++++ @override++ String get clipboardWriteFailed => '已接收,但無法寫入剪貼簿';++++ @override++ String get receivingStatus => '正在接收…';++++ @override++ String get largeFileNotifications => '大檔案接收提醒';++++ @override++ String get notificationsAllowed => '已允許系統通知,接收進度可在複製記錄中查看。';++++ @override++ String get notificationsNotRequested => '開啟系統通知,避免大檔案等待接收時沒有提醒;也可隨時從複製記錄接收。';++++ @override++ String get notificationsDenied => '系統通知已關閉,請在系統設定中開啟;待接收內容仍可從複製記錄接收。';++++ @override++ String get notificationsUnknown => '通知顯示和勿擾由系統控制;未看到提醒時,可在複製記錄中接收。';++++ @override++ String get notificationsUnavailable => '系統通知暫時無法使用,請從複製記錄接收大檔案。';++++ @override++ String get enableNotifications => '開啟提醒';++++ @override++ String get notificationSettings => '通知設定';++++ @override++ String get notifyPendingTitle => '接收後即可貼上';++++ @override++ String notifyPendingBody(String device, String name, String size) {++ return '$device · $name · $size\n尚未接收,暫不可貼上。也可從複製記錄接收。';++ }++++ @override++ String get notifyReceivingTitle => '正在接收…';++++ @override++ String notifyReceivingBody(String name) {++ return '$name\n可在複製記錄查看接收進度。';++ }++++ @override++ String get notifyReadyTitle => '已就緒,可以貼上';++++ @override++ String notifyReadyBody(String name) {++ return '$name\n已接收並放入剪貼簿。';++ }++++ @override++ String get notifyReceivedTitle => '已接收';++++ @override++ String notifyReceivedBody(String name) {++ return '$name\n已保留目前剪貼簿,點選放入剪貼簿後即可貼上,也可從複製記錄操作。';++ }++++ @override++ String get notifyFailedTitle => '接收失敗';++++ @override++ String notifyFailedBody(String name, String error) {++ return '$name\n$error\n可從此通知或複製記錄重試。';++ }++++ @override++ String get notifyClipboardFailedTitle => '已接收,但無法寫入剪貼簿';++++ @override++ String notifyClipboardFailedBody(String name, String error) {++ return '$name\n$error\n可從此通知或複製記錄重新放入剪貼簿。';++ }}diff --cc ui/lib/l10n/app_zh.arbindex 8c2dae1,627d878..6f54161--- a/ui/lib/l10n/app_zh.arb+++ b/ui/lib/l10n/app_zh.arb@@@ -181,9 -210,12 +181,9 @@@"language": "语言","languageSystem": "跟随系统","sync": "同步",- "syncFootnote": "小于阈值的内容在复制时直接推送到其他设备;超过阈值的只同步一条记录,需要时在「复制记录」里点「接收」,避免大文件无谓地占用带宽和磁盘。","autoSyncLimit": "自动同步上限",- "autoSyncLimitDesc": "超出上限后,在复制记录中手动拉取",- "autoSyncLimitDesc": "超过这个大小的文件改为手动接收",++ "autoSyncLimitDesc": "超出上限后,在复制记录中手动接收","autoApply": "收到后直接写入剪贴板",- "autoApplyDesc": "关闭后,需要在「复制记录」里手动放入剪贴板","whatToSync": "同步哪些内容","syncFiles": "文件与文件夹","syncText": "纯文本",@@@ -243,32 -276,5 +243,57 @@@"svcDevBodyLinux": "这是开发构建,旁边没有 pasteferryd。在源码目录运行 ./scripts/package-linux.sh 构建完整的版本。","svcDevBodyMac": "这是开发构建,App 里没有内置后台服务。在源码目录运行 ./scripts/install-macos.sh 安装它。","svcLogPath": "运行日志:{path}",- "svcCanDisable": "随时可以在「设置」中停用后台同步。"+ "svcCanDisable": "随时可以在「设置」中停用后台同步。",+ "officialService": "官方服务",+ "useOfficialService": "使用官方服务",+ "officialServiceDesc": "跨网络同步,优先直连",+ "officialPrivacy": "仅开启后连接官方服务并统计必要接入信息。先尝试直连,失败才申请中转;不上传内容、真实设备名或原始系统标识。",+ "officialEnableTitle": "启用官方公网服务?",+ "officialSwitchConfirm": "这会切换当前自定义服务器,已保存的地址仍会保留。",+ "customServer": "自定义服务器",+ "saveAndConnect": "保存并连接",+ "officialUnused": "尚未申请中转,余额待核验",+ "officialUnavailable": "用量暂不可用,已有数据可能过期",+ "officialQuotaTitle": "今日中转额度已用完",+ "officialQuotaBody": "官方中转已暂停,北京时间零点重置。局域网和公网直连仍可使用;传输失败时可稍后重试。",+ "officialPeerQuota": "对端中转额度不足,直连仍可使用",+ "officialPaused": "官方中转暂不可用,直连仍可使用",+ "officialViewUsage": "查看用量",+ "officialAcknowledge": "知道了",+ "officialToday": "今日中转用量",+ "officialUsed": "已使用",+ "officialRemaining": "剩余额度",+ "officialDailyLimit": "每日额度",+ "officialUpload": "上传",+ "officialDownload": "下载",+ "officialReset": "重置时间(北京时间)",+ "officialUpdated": "最后更新",+ "officialDeviceID": "设备 ID",+ "officialWarning": "今日中转额度已使用 90%,直连不消耗此额度。",- "officialAccounting": "上下行合计,包含加密传输开销;只统计官方中转,不统计直连内容或流量。"++ "officialAccounting": "上下行合计,包含加密传输开销;只统计官方中转,不统计直连内容或流量。",++ "buildDetails": "界面 {uiVersion} · 后台 {serviceVersion} · 构建 {build}",++ "notReceived": "尚未接收,暂不可粘贴",++ "receivedPreserved": "已接收,点击放入剪贴板后可粘贴",++ "clipboardWriteFailed": "已接收,但未能写入剪贴板",++ "receivingStatus": "正在接收…",++ "largeFileNotifications": "大文件接收提醒",++ "notificationsAllowed": "已允许系统通知,接收进度在复制记录中查看。",++ "notificationsNotRequested": "开启系统通知,避免大文件等待接收时没有提示;也可随时从复制记录接收。",++ "notificationsDenied": "系统通知已关闭,请在系统设置中开启;待接收内容仍可从复制记录接收。",++ "notificationsUnknown": "通知显示和勿扰由系统控制;未看到提醒时,可在复制记录中接收。",++ "notificationsUnavailable": "系统通知暂不可用,请从复制记录接收大文件。",++ "enableNotifications": "开启提醒",++ "notificationSettings": "通知设置",++ "notifyPendingTitle": "接收后即可粘贴",++ "notifyPendingBody": "{device} · {name} · {size}\n尚未接收,暂不可粘贴。也可从复制记录接收。",++ "notifyReceivingTitle": "正在接收…",++ "notifyReceivingBody": "{name}\n可在复制记录查看接收进度。",++ "notifyReadyTitle": "已就绪,可以粘贴",++ "notifyReadyBody": "{name}\n已接收并放入剪贴板。",++ "notifyReceivedTitle": "已接收",++ "notifyReceivedBody": "{name}\n已保留当前剪贴板,点击放入剪贴板后可粘贴,也可从复制记录操作。",++ "notifyFailedTitle": "接收失败",++ "notifyFailedBody": "{name}\n{error}\n可从此通知或复制记录重试。",++ "notifyClipboardFailedTitle": "已接收,但未能写入剪贴板",++ "notifyClipboardFailedBody": "{name}\n{error}\n可从此通知或复制记录重新放入剪贴板。"}diff --cc ui/lib/l10n/app_zh_Hant_HK.arbindex ddf2a55,82a7f5c..6f88728--- a/ui/lib/l10n/app_zh_Hant_HK.arb+++ b/ui/lib/l10n/app_zh_Hant_HK.arb@@@ -181,9 -210,12 +181,9 @@@"language": "語言","languageSystem": "跟隨系統","sync": "同步",- "syncFootnote": "小於上限的內容在複製時直接推送到其他裝置;超過上限的只同步一條記錄,需要時在「複製記錄」裏按「接收」,避免大檔案無謂地佔用頻寬和磁碟空間。","autoSyncLimit": "自動同步上限",- "autoSyncLimitDesc": "超出上限後,在複製記錄中手動拉取",- "autoSyncLimitDesc": "超過這個大小的檔案改為手動接收",++ "autoSyncLimitDesc": "超出上限後,在複製記錄中手動接收","autoApply": "收到後直接寫入剪貼簿",- "autoApplyDesc": "關閉後,需要在「複製記錄」裏手動放入剪貼簿","whatToSync": "同步哪些內容","syncFiles": "檔案與資料夾","syncText": "純文字",@@@ -243,32 -276,5 +243,57 @@@"svcDevBodyLinux": "這是開發版本,旁邊沒有 pasteferryd。在原始碼目錄執行 ./scripts/package-linux.sh 建置完整的版本。","svcDevBodyMac": "這是開發版本,App 裏沒有內建背景服務。在原始碼目錄執行 ./scripts/install-macos.sh 安裝它。","svcLogPath": "執行日誌:{path}",- "svcCanDisable": "隨時可以在「設定」中停用背景同步。"+ "svcCanDisable": "隨時可以在「設定」中停用背景同步。",+ "officialService": "官方服務",+ "useOfficialService": "使用官方服務",+ "officialServiceDesc": "跨網絡同步,優先直連",+ "officialPrivacy": "只在啟用後連接官方服務並統計必要連線資料。先嘗試直連,失敗才申請中轉;不傳送內容、真實裝置名稱或原始系統識別碼。",+ "officialEnableTitle": "啟用官方公網服務?",+ "officialSwitchConfirm": "這會切換目前的自訂伺服器,已儲存的地址仍會保留。",+ "customServer": "自訂伺服器",+ "saveAndConnect": "儲存並連接",+ "officialUnused": "尚未申請中轉,餘額待確認",+ "officialUnavailable": "用量暫時無法取得,現有資料可能過期",+ "officialQuotaTitle": "今日中轉額度已用完",+ "officialQuotaBody": "官方中轉已暫停,北京時間午夜重設。區域網絡和公網直連仍可使用;傳輸失敗時可稍後重試。",+ "officialPeerQuota": "對方中轉額度不足,直連仍可使用",+ "officialPaused": "官方中轉暫時無法使用,直連仍可使用",+ "officialViewUsage": "查看用量",+ "officialAcknowledge": "知道了",+ "officialToday": "今日中轉用量",+ "officialUsed": "已使用",+ "officialRemaining": "剩餘額度",+ "officialDailyLimit": "每日額度",+ "officialUpload": "上傳",+ "officialDownload": "下載",+ "officialReset": "重設時間(北京時間)",+ "officialUpdated": "上次更新",+ "officialDeviceID": "裝置 ID",+ "officialWarning": "今日中轉額度已使用 90%,直連不消耗此額度。",- "officialAccounting": "上下行合計,包含加密傳輸開銷;只統計官方中轉,不統計直連內容或流量。"++ "officialAccounting": "上下行合計,包含加密傳輸開銷;只統計官方中轉,不統計直連內容或流量。",++ "buildDetails": "介面 {uiVersion} · 背景服務 {serviceVersion} · 版本識別 {build}",++ "notReceived": "尚未接收,暫不可貼上",++ "receivedPreserved": "已接收,按放入剪貼簿後即可貼上",++ "clipboardWriteFailed": "已接收,但無法寫入剪貼簿",++ "receivingStatus": "正在接收…",++ "largeFileNotifications": "大檔案接收提醒",++ "notificationsAllowed": "已允許系統通知,接收進度可在複製記錄中查看。",++ "notificationsNotRequested": "開啟系統通知,避免大檔案等待接收時沒有提示;亦可隨時從複製記錄接收。",++ "notificationsDenied": "系統通知已關閉,請在系統設定中開啟;待接收內容仍可從複製記錄接收。",++ "notificationsUnknown": "通知顯示和勿擾由系統控制;未看到提示時,可在複製記錄中接收。",++ "notificationsUnavailable": "系統通知暫時無法使用,請從複製記錄接收大檔案。",++ "enableNotifications": "開啟提醒",++ "notificationSettings": "通知設定",++ "notifyPendingTitle": "接收後即可貼上",++ "notifyPendingBody": "{device} · {name} · {size}\n尚未接收,暫不可貼上。亦可從複製記錄接收。",++ "notifyReceivingTitle": "正在接收…",++ "notifyReceivingBody": "{name}\n可在複製記錄查看接收進度。",++ "notifyReadyTitle": "已就緒,可以貼上",++ "notifyReadyBody": "{name}\n已接收並放入剪貼簿。",++ "notifyReceivedTitle": "已接收",++ "notifyReceivedBody": "{name}\n已保留目前剪貼簿,按放入剪貼簿後即可貼上,亦可從複製記錄操作。",++ "notifyFailedTitle": "接收失敗",++ "notifyFailedBody": "{name}\n{error}\n可從此通知或複製記錄重試。",++ "notifyClipboardFailedTitle": "已接收,但無法寫入剪貼簿",++ "notifyClipboardFailedBody": "{name}\n{error}\n可從此通知或複製記錄重新放入剪貼簿。"}diff --cc ui/lib/l10n/app_zh_Hant_TW.arbindex 82173f2,265d4b8..6242610--- a/ui/lib/l10n/app_zh_Hant_TW.arb+++ b/ui/lib/l10n/app_zh_Hant_TW.arb@@@ -181,9 -210,12 +181,9 @@@"language": "語言","languageSystem": "跟隨系統","sync": "同步",- "syncFootnote": "小於上限的內容在複製時直接推送到其他裝置;超過上限的只同步一筆記錄,需要時在「複製記錄」裡點「接收」,避免大檔案白白佔用頻寬和磁碟空間。","autoSyncLimit": "自動同步上限",- "autoSyncLimitDesc": "超過上限後,在複製記錄中手動拉取",- "autoSyncLimitDesc": "超過這個大小的檔案改為手動接收",++ "autoSyncLimitDesc": "超過上限後,在複製記錄中手動接收","autoApply": "收到後直接寫入剪貼簿",- "autoApplyDesc": "關閉後,需要在「複製記錄」裡手動放入剪貼簿","whatToSync": "同步哪些內容","syncFiles": "檔案與資料夾","syncText": "純文字",@@@ -243,32 -276,5 +243,57 @@@"svcDevBodyLinux": "這是開發版本,旁邊沒有 pasteferryd。在原始碼資料夾執行 ./scripts/package-linux.sh 建置完整的版本。","svcDevBodyMac": "這是開發版本,App 裡沒有內建背景服務。在原始碼資料夾執行 ./scripts/install-macos.sh 安裝它。","svcLogPath": "記錄檔:{path}",- "svcCanDisable": "隨時可以在「設定」中停用背景同步。"+ "svcCanDisable": "隨時可以在「設定」中停用背景同步。",+ "officialService": "官方服務",+ "useOfficialService": "使用官方服務",+ "officialServiceDesc": "跨網路同步,優先直連",+ "officialPrivacy": "僅開啟後連線官方服務並統計必要連線資訊。先嘗試直連,失敗才申請中繼;不傳送內容、真實裝置名稱或原始系統識別碼。",+ "officialEnableTitle": "啟用官方公網服務?",+ "officialSwitchConfirm": "這會切換目前的自訂伺服器,已儲存的位址仍會保留。",+ "customServer": "自訂伺服器",+ "saveAndConnect": "儲存並連線",+ "officialUnused": "尚未申請中繼,餘額待確認",+ "officialUnavailable": "用量暫時無法取得,現有資料可能過期",+ "officialQuotaTitle": "今日中繼額度已用完",+ "officialQuotaBody": "官方中繼已暫停,北京時間午夜重設。區域網路和公網直連仍可使用;傳輸失敗時可稍後重試。",+ "officialPeerQuota": "對方中繼額度不足,直連仍可使用",+ "officialPaused": "官方中繼暫時無法使用,直連仍可使用",+ "officialViewUsage": "查看用量",+ "officialAcknowledge": "知道了",+ "officialToday": "今日中繼用量",+ "officialUsed": "已使用",+ "officialRemaining": "剩餘額度",+ "officialDailyLimit": "每日額度",+ "officialUpload": "上傳",+ "officialDownload": "下載",+ "officialReset": "重設時間(北京時間)",+ "officialUpdated": "上次更新",+ "officialDeviceID": "裝置 ID",+ "officialWarning": "今日中繼額度已使用 90%,直連不消耗此額度。",- "officialAccounting": "上下行合計,包含加密傳輸開銷;僅統計官方中繼,不統計直連內容或流量。"++ "officialAccounting": "上下行合計,包含加密傳輸開銷;僅統計官方中繼,不統計直連內容或流量。",++ "buildDetails": "介面 {uiVersion} · 背景服務 {serviceVersion} · 建置 {build}",++ "notReceived": "尚未接收,暫不可貼上",++ "receivedPreserved": "已接收,點選放入剪貼簿後即可貼上",++ "clipboardWriteFailed": "已接收,但無法寫入剪貼簿",++ "receivingStatus": "正在接收…",++ "largeFileNotifications": "大檔案接收提醒",++ "notificationsAllowed": "已允許系統通知,接收進度可在複製記錄中查看。",++ "notificationsNotRequested": "開啟系統通知,避免大檔案等待接收時沒有提醒;也可隨時從複製記錄接收。",++ "notificationsDenied": "系統通知已關閉,請在系統設定中開啟;待接收內容仍可從複製記錄接收。",++ "notificationsUnknown": "通知顯示和勿擾由系統控制;未看到提醒時,可在複製記錄中接收。",++ "notificationsUnavailable": "系統通知暫時無法使用,請從複製記錄接收大檔案。",++ "enableNotifications": "開啟提醒",++ "notificationSettings": "通知設定",++ "notifyPendingTitle": "接收後即可貼上",++ "notifyPendingBody": "{device} · {name} · {size}\n尚未接收,暫不可貼上。也可從複製記錄接收。",++ "notifyReceivingTitle": "正在接收…",++ "notifyReceivingBody": "{name}\n可在複製記錄查看接收進度。",++ "notifyReadyTitle": "已就緒,可以貼上",++ "notifyReadyBody": "{name}\n已接收並放入剪貼簿。",++ "notifyReceivedTitle": "已接收",++ "notifyReceivedBody": "{name}\n已保留目前剪貼簿,點選放入剪貼簿後即可貼上,也可從複製記錄操作。",++ "notifyFailedTitle": "接收失敗",++ "notifyFailedBody": "{name}\n{error}\n可從此通知或複製記錄重試。",++ "notifyClipboardFailedTitle": "已接收,但無法寫入剪貼簿",++ "notifyClipboardFailedBody": "{name}\n{error}\n可從此通知或複製記錄重新放入剪貼簿。"}diff --cc ui/lib/pages/settings_page.dartindex 5d731e2,86ee4e7..c37bb20--- a/ui/lib/pages/settings_page.dart+++ b/ui/lib/pages/settings_page.dart@@@ -235,29 -204,46 +236,69 @@@ class _SettingsPageState extends State<),GroupSection(title: l.sync,- footnote: l.syncFootnote,- child: GroupBox(children: [- SettingRow(- title: l.autoSyncLimit,- description: l.autoSyncLimitDesc,- child: _ThresholdSelector(- value: cfg.autoSyncThresholdBytes.toInt(),- onChanged: (v) => _update(state, cfg..autoSyncThresholdBytes = Int64(v)),+ child: GroupBox(+ children: [+ SettingRow(+ title: l.autoSyncLimit,+ description: l.autoSyncLimitDesc,+ child: _ThresholdSelector(+ value: cfg.autoSyncThresholdBytes.toInt(),+ onChanged: (v) => _update(+ state,+ cfg..autoSyncThresholdBytes = Int64(v),+ ),+ ),),- ),- SettingRow(- title: l.largeFileNotifications,- description: switch (state.notificationStatus?.permission) {- 'allowed' => l.notificationsAllowed,- 'not_requested' => l.notificationsNotRequested,- 'denied' => l.notificationsDenied,- 'unknown' => l.notificationsUnknown,- _ => l.notificationsUnavailable,- },- child: state.notificationStatus?.supported == true &&- !(Platform.isLinux && state.notificationStatus?.permission == 'unknown')- ? TextButton(- onPressed: () async {- try { await state.requestNotifications(); }- catch (e) { if (context.mounted) showToast(context, AppState.describeError(e), error: true); }++ SettingRow(++ title: l.largeFileNotifications,++ description:++ switch (state.notificationStatus?.permission) {++ 'allowed' => l.notificationsAllowed,++ 'not_requested' => l.notificationsNotRequested,++ 'denied' => l.notificationsDenied,++ 'unknown' => l.notificationsUnknown,++ _ => l.notificationsUnavailable,+ },- child: Text(state.notificationStatus?.permission == 'not_requested'- ? l.enableNotifications : l.notificationSettings),- )- : TextButton(onPressed: state.refreshNotificationStatus, child: Text(l.retry)),- ),- SettingRow(- title: l.autoApply,- description: l.autoApplyDesc,- child: SmallSwitch(- value: cfg.autoApplyToClipboard,- onChanged: (v) => _update(state, cfg..autoApplyToClipboard = v),++ child:++ state.notificationStatus?.supported == true &&++ !(Platform.isLinux &&++ state.notificationStatus?.permission ==++ 'unknown')++ ? TextButton(++ onPressed: () async {++ try {++ await state.requestNotifications();++ } catch (e) {++ if (context.mounted)++ showToast(++ context,++ AppState.describeError(e),++ error: true,++ );++ }++ },++ child: Text(++ state.notificationStatus?.permission ==++ 'not_requested'++ ? l.enableNotifications++ : l.notificationSettings,++ ),++ )++ : TextButton(++ onPressed: state.refreshNotificationStatus,++ child: Text(l.retry),++ ),+ ),- ),- ]),+ SettingRow(+ title: l.autoApply,+ child: SmallSwitch(+ value: cfg.autoApplyToClipboard,+ onChanged: (v) =>+ _update(state, cfg..autoApplyToClipboard = v),+ ),+ ),+ ],+ ),),GroupSection(title: l.whatToSync,@@@ -323,39 -301,11 +364,41 @@@if (state.service.available)GroupSection(title: l.backgroundSync,- footnote: l.backgroundFootnote,- child: GroupBox(children: [+ child: GroupBox(+ children: [+ SettingRow(+ title: l.backgroundService,+ description: l.backgroundServiceDesc,+ child: Row(+ mainAxisSize: MainAxisSize.min,+ children: [+ OutlinedButton(+ onPressed: () => _serviceAction(+ state.restartService,+ l.restarted,+ ),+ child: Text(l.restart),+ ),+ const SizedBox(width: Insets.sm),+ OutlinedButton(+ onPressed: () => _confirmDisable(state),+ child: Text(l.disableEllipsis),+ ),+ ],+ ),+ ),+ ],+ ),+ ),+ GroupSection(+ title: l.about,+ child: GroupBox(+ children: [SettingRow(- title: l.backgroundService,- description: l.backgroundServiceDesc,+ title: '${l.appName} ${state.status?.version ?? ''}',- description: l.aboutDesc,++ description: appBuild.isEmpty++ ? l.aboutDesc++ : '${l.aboutDesc}\n${l.buildDetails(appVersion, state.status?.version ?? '…', appBuild)}',child: Row(mainAxisSize: MainAxisSize.min,children: [diff --cc ui/tool/l10n/strings.pyindex 8592465,8e2e6b3..e6daaff--- a/ui/tool/l10n/strings.py+++ b/ui/tool/l10n/strings.py@@@ -218,9 -248,12 +218,9 @@@ S =("language", "Language", "语言", "言語", "語言", "語言"),("languageSystem", "System", "跟随系统", "システムに合わせる", "跟隨系統", "跟隨系統"),("sync", "Sync", "同步", "同期", "同步", "同步"),- ("syncFootnote", "Items under the limit are pushed to your other devices as you copy. Larger ones sync as a record; receive them from History when you need them, so big files don't waste bandwidth or disk space.", "小于阈值的内容在复制时直接推送到其他设备;超过阈值的只同步一条记录,需要时在「复制记录」里点「接收」,避免大文件无谓地占用带宽和磁盘。", "上限より小さい内容はコピーした時点で他のデバイスに送られます。大きいものは記録だけを同期し、必要なときに「履歴」から取り込むので、帯域やディスクを無駄に使いません。", "小於上限的內容在複製時直接推送到其他裝置;超過上限的只同步一筆記錄,需要時在「複製記錄」裡點「接收」,避免大檔案白白佔用頻寬和磁碟空間。", "小於上限的內容在複製時直接推送到其他裝置;超過上限的只同步一條記錄,需要時在「複製記錄」裏按「接收」,避免大檔案無謂地佔用頻寬和磁碟空間。"),("autoSyncLimit", "Auto-sync limit", "自动同步上限", "自動同期の上限", "自動同步上限", "自動同步上限"),- ("autoSyncLimitDesc", "Pull larger items manually from History", "超出上限后,在复制记录中手动拉取", "上限を超える内容は履歴から手動で取得", "超過上限後,在複製記錄中手動拉取", "超出上限後,在複製記錄中手動拉取"),- ("autoSyncLimitDesc", "Larger files must be received before pasting", "超过这个大小的文件改为手动接收", "これより大きいファイルは手動で取り込みます", "超過這個大小的檔案改為手動接收", "超過這個大小的檔案改為手動接收"),++ ("autoSyncLimitDesc", "Receive larger items manually from History", "超出上限后,在复制记录中手动接收", "上限を超える内容は履歴から手動で取得", "超過上限後,在複製記錄中手動接收", "超出上限後,在複製記錄中手動接收"),("autoApply", "Put received items on the clipboard", "收到后直接写入剪贴板", "受け取った内容をクリップボードに入れる", "收到後直接寫入剪貼簿", "收到後直接寫入剪貼簿"),- ("autoApplyDesc", "When off, put them on the clipboard from History yourself", "关闭后,需要在「复制记录」里手动放入剪贴板", "オフの場合は「履歴」から手動でクリップボードに入れます", "關閉後,需要在「複製記錄」裡手動放入剪貼簿", "關閉後,需要在「複製記錄」裏手動放入剪貼簿"),("whatToSync", "What to sync", "同步哪些内容", "同期する内容", "同步哪些內容", "同步哪些內容"),("syncFiles", "Files and folders", "文件与文件夹", "ファイルとフォルダ", "檔案與資料夾", "檔案與資料夾"),("syncText", "Plain text", "纯文本", "プレーンテキスト", "純文字", "純文字"),@@@ -285,35 -319,6 +285,62 @@@("svcDevBodyMac", "This is a development build without the background service. Run ./scripts/install-macos.sh in the source folder to install it.", "这是开发构建,App 里没有内置后台服务。在源码目录运行 ./scripts/install-macos.sh 安装它。", "開発ビルドのためバックグラウンドサービスが含まれていません。ソースフォルダで ./scripts/install-macos.sh を実行してインストールしてください。", "這是開發版本,App 裡沒有內建背景服務。在原始碼資料夾執行 ./scripts/install-macos.sh 安裝它。", "這是開發版本,App 裏沒有內建背景服務。在原始碼目錄執行 ./scripts/install-macos.sh 安裝它。"),("svcLogPath", "Log: {path}", "运行日志:{path}", "ログ:{path}", "記錄檔:{path}", "執行日誌:{path}"),("svcCanDisable", "You can turn background sync off anytime in Settings.", "随时可以在「设置」中停用后台同步。", "バックグラウンド同期は「設定」でいつでもオフにできます。", "隨時可以在「設定」中停用背景同步。", "隨時可以在「設定」中停用背景同步。"),+ # Official gateway: opt-in access, relay-only quota and privacy.+ ('officialService', 'Official service', '官方服务', '公式サービス', '官方服務', '官方服務'),+ ('useOfficialService', 'Use official service', '使用官方服务', '公式サービスを使う', '使用官方服務', '使用官方服務'),+ ("officialServiceDesc", "Sync across networks, direct connections first", "跨网络同步,优先直连", "別のネットワーク間で同期。直接接続を優先", "跨網路同步,優先直連", "跨網絡同步,優先直連"),+ ('officialPrivacy', 'Connects to the official service only when enabled and records essential access statistics. Direct connections are tried first; relay access is requested only if they fail. Content, real device names and raw system identifiers are not uploaded.', '仅开启后连接官方服务并统计必要接入信息。先尝试直连,失败才申请中转;不上传内容、真实设备名或原始系统标识。', '有効にした場合のみ公式サービスに接続し、必要最小限の接続情報を記録します。まず直接接続を試み、失敗した場合のみ中継を申請します。内容、実際の端末名、元のシステム識別子は送信しません。', '僅開啟後連線官方服務並統計必要連線資訊。先嘗試直連,失敗才申請中繼;不傳送內容、真實裝置名稱或原始系統識別碼。', '只在啟用後連接官方服務並統計必要連線資料。先嘗試直連,失敗才申請中轉;不傳送內容、真實裝置名稱或原始系統識別碼。'),+ ('officialEnableTitle', 'Enable official Internet service?', '启用官方公网服务?', '公式インターネットサービスを有効にしますか?', '啟用官方公網服務?', '啟用官方公網服務?'),+ ('officialSwitchConfirm', 'This switches away from your custom server. Its saved address will be retained.', '这会切换当前自定义服务器,已保存的地址仍会保留。', '現在のカスタムサーバーから切り替えます。保存済みのアドレスは保持されます。', '這會切換目前的自訂伺服器,已儲存的位址仍會保留。', '這會切換目前的自訂伺服器,已儲存的地址仍會保留。'),+ ('customServer', 'Custom server', '自定义服务器', 'カスタムサーバー', '自訂伺服器', '自訂伺服器'),+ ('saveAndConnect', 'Save and connect', '保存并连接', '保存して接続', '儲存並連線', '儲存並連接'),+ ('officialUnused', 'Relay not requested; allowance not yet verified', '尚未申请中转,余额待核验', '中継は未申請です。残量は未確認です', '尚未申請中繼,餘額待確認', '尚未申請中轉,餘額待確認'),+ ('officialUnavailable', 'Usage is unavailable; existing data may be out of date', '用量暂不可用,已有数据可能过期', '使用量を取得できません。表示データは古い可能性があります', '用量暫時無法取得,現有資料可能過期', '用量暫時無法取得,現有資料可能過期'),+ ('officialQuotaTitle', 'Daily relay allowance used up', '今日中转额度已用完', '本日の中継上限に達しました', '今日中繼額度已用完', '今日中轉額度已用完'),+ ('officialQuotaBody', 'Official relay is paused until the daily reset at midnight Beijing time. LAN and direct Internet connections remain available. Failed transfers can be retried later.', '官方中转已暂停,北京时间零点重置。局域网和公网直连仍可使用;传输失败时可稍后重试。', '公式中継は北京時間の午前0時にリセットされるまで停止します。LANと直接接続は引き続き利用できます。失敗した転送は後で再試行できます。', '官方中繼已暫停,北京時間午夜重設。區域網路和公網直連仍可使用;傳輸失敗時可稍後重試。', '官方中轉已暫停,北京時間午夜重設。區域網絡和公網直連仍可使用;傳輸失敗時可稍後重試。'),+ ('officialPeerQuota', 'The peer has no relay allowance left. Direct connections remain available.', '对端中转额度不足,直连仍可使用', '相手の中継残量がありません。直接接続は引き続き利用できます', '對方中繼額度不足,直連仍可使用', '對方中轉額度不足,直連仍可使用'),+ ('officialPaused', 'Official relay is unavailable. Direct connections remain available.', '官方中转暂不可用,直连仍可使用', '公式中継は現在利用できません。直接接続は引き続き利用できます', '官方中繼暫時無法使用,直連仍可使用', '官方中轉暫時無法使用,直連仍可使用'),+ ('officialViewUsage', 'View usage', '查看用量', '使用量を表示', '查看用量', '查看用量'),+ ('officialAcknowledge', 'Got it', '知道了', '確認しました', '知道了', '知道了'),+ ('officialToday', "Today's relay usage", '今日中转用量', '本日の中継使用量', '今日中繼用量', '今日中轉用量'),+ ('officialUsed', 'Used', '已使用', '使用済み', '已使用', '已使用'),+ ('officialRemaining', 'Remaining', '剩余额度', '残量', '剩餘額度', '剩餘額度'),+ ('officialDailyLimit', 'Daily allowance', '每日额度', '1日の上限', '每日額度', '每日額度'),+ ('officialUpload', 'Upload', '上传', 'アップロード', '上傳', '上傳'),+ ('officialDownload', 'Download', '下载', 'ダウンロード', '下載', '下載'),+ ('officialReset', 'Reset time (Beijing)', '重置时间(北京时间)', 'リセット時刻(北京時間)', '重設時間(北京時間)', '重設時間(北京時間)'),+ ('officialUpdated', 'Last updated', '最后更新', '最終更新', '上次更新', '上次更新'),+ ('officialDeviceID', 'Device ID', '设备 ID', '端末 ID', '裝置 ID', '裝置 ID'),+ ('officialWarning', '90% of the daily relay allowance has been used. Direct connections do not consume it.', '今日中转额度已使用 90%,直连不消耗此额度。', '本日の中継上限の90%を使用しました。直接接続ではこの残量は消費しません。', '今日中繼額度已使用 90%,直連不消耗此額度。', '今日中轉額度已使用 90%,直連不消耗此額度。'),+ ('officialAccounting', 'Upload and download combined, including encryption overhead. Only official relay usage is measured; direct content and traffic are not recorded.', '上下行合计,包含加密传输开销;只统计官方中转,不统计直连内容或流量。', '暗号化の通信量を含む送受信の合計です。公式中継のみ計測し、直接接続の内容や通信量は記録しません。', '上下行合計,包含加密傳輸開銷;僅統計官方中繼,不統計直連內容或流量。', '上下行合計,包含加密傳輸開銷;只統計官方中轉,不統計直連內容或流量。'),+++ # Desktop notifications and build identity.++ ("buildDetails", "UI {uiVersion} · Service {serviceVersion} · Build {build}", "界面 {uiVersion} · 后台 {serviceVersion} · 构建 {build}", "UI {uiVersion} · サービス {serviceVersion} · ビルド {build}", "介面 {uiVersion} · 背景服務 {serviceVersion} · 建置 {build}", "介面 {uiVersion} · 背景服務 {serviceVersion} · 版本識別 {build}"),++ ("notReceived", "Not received — receive before pasting", "尚未接收,暂不可粘贴", "未受信 — ペーストする前に受信してください", "尚未接收,暫不可貼上", "尚未接收,暫不可貼上"),++ ("receivedPreserved", "Received; use Copy to clipboard when ready", "已接收,点击放入剪贴板后可粘贴", "受信済み。クリップボードに入れるとペーストできます", "已接收,點選放入剪貼簿後即可貼上", "已接收,按放入剪貼簿後即可貼上"),++ ("clipboardWriteFailed", "Received, but the clipboard could not be updated", "已接收,但未能写入剪贴板", "受信済みですが、クリップボードを更新できませんでした", "已接收,但無法寫入剪貼簿", "已接收,但無法寫入剪貼簿"),++ ("receivingStatus", "Receiving…", "正在接收…", "受信中…", "正在接收…", "正在接收…"),++ ("largeFileNotifications", "Large file reminders", "大文件接收提醒", "大きなファイルの受信通知", "大檔案接收提醒", "大檔案接收提醒"),++ ("notificationsAllowed", "Notifications are enabled. Progress is shown in History.", "已允许系统通知,接收进度在复制记录中查看。", "通知は有効です。受信の進捗は履歴で確認できます。", "已允許系統通知,接收進度可在複製記錄中查看。", "已允許系統通知,接收進度可在複製記錄中查看。"),++ ("notificationsNotRequested", "Enable notifications so large files do not wait silently. You can always receive them from History.", "开启系统通知,避免大文件等待接收时没有提示;也可随时从复制记录接收。", "大きなファイルの受信待ちを通知します。履歴からいつでも受信できます。", "開啟系統通知,避免大檔案等待接收時沒有提醒;也可隨時從複製記錄接收。", "開啟系統通知,避免大檔案等待接收時沒有提示;亦可隨時從複製記錄接收。"),++ ("notificationsDenied", "Notifications are blocked in system settings. Receive pending items from History.", "系统通知已关闭,请在系统设置中开启;待接收内容仍可从复制记录接收。", "システム設定で通知が無効です。受信待ちの項目は履歴から受信できます。", "系統通知已關閉,請在系統設定中開啟;待接收內容仍可從複製記錄接收。", "系統通知已關閉,請在系統設定中開啟;待接收內容仍可從複製記錄接收。"),++ ("notificationsUnknown", "Your desktop controls notification delivery and Do Not Disturb. Receive items from History if no reminder appears.", "通知显示和勿扰由系统控制;未看到提醒时,可在复制记录中接收。", "通知とおやすみモードはデスクトップで管理されます。通知がない場合は履歴から受信できます。", "通知顯示和勿擾由系統控制;未看到提醒時,可在複製記錄中接收。", "通知顯示和勿擾由系統控制;未看到提示時,可在複製記錄中接收。"),++ ("notificationsUnavailable", "System notifications are unavailable. Receive large files from History.", "系统通知暂不可用,请从复制记录接收大文件。", "システム通知を利用できません。大きなファイルは履歴から受信してください。", "系統通知暫時無法使用,請從複製記錄接收大檔案。", "系統通知暫時無法使用,請從複製記錄接收大檔案。"),++ ("enableNotifications", "Enable reminders", "开启提醒", "通知を有効にする", "開啟提醒", "開啟提醒"),++ ("notificationSettings", "Notification settings", "通知设置", "通知設定", "通知設定", "通知設定"),++ ("notifyPendingTitle", "Receive to paste", "接收后即可粘贴", "受信するとペーストできます", "接收後即可貼上", "接收後即可貼上"),++ ("notifyPendingBody", "{device} · {name} · {size}\nReceive this item before pasting. You can also receive it from History.", "{device} · {name} · {size}\n尚未接收,暂不可粘贴。也可从复制记录接收。", "{device} · {name} · {size}\nペーストする前に受信してください。履歴からも受信できます。", "{device} · {name} · {size}\n尚未接收,暫不可貼上。也可從複製記錄接收。", "{device} · {name} · {size}\n尚未接收,暫不可貼上。亦可從複製記錄接收。"),++ ("notifyReceivingTitle", "Receiving…", "正在接收…", "受信中…", "正在接收…", "正在接收…"),++ ("notifyReceivingBody", "{name}\nSee History for progress.", "{name}\n可在复制记录查看接收进度。", "{name}\n進捗は履歴で確認できます。", "{name}\n可在複製記錄查看接收進度。", "{name}\n可在複製記錄查看接收進度。"),++ ("notifyReadyTitle", "Ready to paste", "已就绪,可以粘贴", "ペーストできます", "已就緒,可以貼上", "已就緒,可以貼上"),++ ("notifyReadyBody", "{name}\nReceived and placed on the clipboard.", "{name}\n已接收并放入剪贴板。", "{name}\n受信してクリップボードに入れました。", "{name}\n已接收並放入剪貼簿。", "{name}\n已接收並放入剪貼簿。"),++ ("notifyReceivedTitle", "Received", "已接收", "受信しました", "已接收", "已接收"),++ ("notifyReceivedBody", "{name}\nYour clipboard was kept. Use Copy to clipboard when ready; this is also available in History.", "{name}\n已保留当前剪贴板,点击放入剪贴板后可粘贴,也可从复制记录操作。", "{name}\n現在のクリップボードは保持しました。クリップボードに入れる操作は履歴からもできます。", "{name}\n已保留目前剪貼簿,點選放入剪貼簿後即可貼上,也可從複製記錄操作。", "{name}\n已保留目前剪貼簿,按放入剪貼簿後即可貼上,亦可從複製記錄操作。"),++ ("notifyFailedTitle", "Could not receive", "接收失败", "受信できませんでした", "接收失敗", "接收失敗"),++ ("notifyFailedBody", "{name}\n{error}\nTry again from this notification or History.", "{name}\n{error}\n可从此通知或复制记录重试。", "{name}\n{error}\nこの通知または履歴から再試行できます。", "{name}\n{error}\n可從此通知或複製記錄重試。", "{name}\n{error}\n可從此通知或複製記錄重試。"),++ ("notifyClipboardFailedTitle", "Received; clipboard was not updated", "已接收,但未能写入剪贴板", "受信済みですがクリップボードを更新できませんでした", "已接收,但無法寫入剪貼簿", "已接收,但無法寫入剪貼簿"),++ ("notifyClipboardFailedBody", "{name}\n{error}\nUse Copy to clipboard to try again, here or in History.", "{name}\n{error}\n可从此通知或复制记录重新放入剪贴板。", "{name}\n{error}\nこの通知または履歴からクリップボードに入れて再試行できます。", "{name}\n{error}\n可從此通知或複製記錄重新放入剪貼簿。", "{name}\n{error}\n可從此通知或複製記錄重新放入剪貼簿。"),++]# 数字类占位符的类型;其余都是字符串