refactor(edge): Server 协议统一与 wsclient 收敛(Phase 3 Batch 3)

- openflare/agent/relay/flared 协议类型改为 pkg/protocol 别名,删除重复 struct
- 新增 edge/wsclient Preset 表,三组件 wsclient 改为薄包装
- 更新设计文档、计划与 changelog
This commit is contained in:
ryan
2026-06-19 15:00:46 +08:00
parent db9a9f98fd
commit 0b34792709
16 changed files with 328 additions and 484 deletions
@@ -0,0 +1,15 @@
// Copyright 2026 Arctel.net
// SPDX-License-Identifier: Apache-2.0
package flared
import pkgprotocol "github.com/Rain-kl/Wavelet/pkg/protocol"
type HeartbeatPayload = pkgprotocol.FlaredHeartbeatPayload
type ConnectedRelay = pkgprotocol.FlaredConnectedRelay
type ActiveConfigMeta = pkgprotocol.ActiveConfigMeta
type HeartbeatResponse = pkgprotocol.FlaredHeartbeatResponse
type TunnelConfigResponse = pkgprotocol.FlaredTunnelConfigResponse
type RelayInfo = pkgprotocol.FlaredRelayInfo
type ProxyEntry = pkgprotocol.FlaredProxyEntry
type ApplyLogPayload = pkgprotocol.ApplyLogPayload