refactor: split node agent and Go control plane

This commit is contained in:
2026-09-11 16:57:31 +08:00
parent 078c22c73b
commit c86ba9c4d7
129 changed files with 654 additions and 77 deletions
@@ -0,0 +1,30 @@
namespace WxAgent.Core;
public enum WxAgentErrorCode
{
WechatNotRunning,
WechatNotLoggedIn,
WindowNotFound,
ControlNotFound,
UiStructureChanged,
Timeout,
PermissionMismatch,
SessionLocked,
UnsupportedWechatVersion,
ResultUnconfirmed,
OperationCancelled,
InvalidOperationState,
DataRootNotFound,
ProcessAccessDenied,
DatabaseKeyNotFound,
DatabaseOpenFailed,
ClipboardUnavailable,
InvalidArgument,
FeatureUnavailable
}
public sealed class WxAgentException(WxAgentErrorCode code, string message, Exception? innerException = null)
: Exception(message, innerException)
{
public WxAgentErrorCode Code { get; } = code;
}