- Lab app: proxy panel, node editor, configuration and detail pages, responsive layout, and related tests - Add meshport-socks crate and sing-box bridge scripts/docs - Add singbox_flutter binding and meshport_client_core package - FFI, VPN helper (unified mac path), and Android/macOS runner updates - Docs for architecture, client runtime, UI design, and validation - UI design output artifacts under outputs/ui Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
20 KiB
20 KiB
MeshPort V4 生成提示词
工具:内置 image_gen.imagegen。以 V3 图为参考进行编辑,保留原图;修正补充图采用后续定向编辑。交互定义以 V4 交互说明为准。
main
Edit the supplied MeshPort four-screen mobile UI board. Preserve warm ivory, white rounded cards, pale cyan, teal controls, MeshPort logo, four straight-on complete phones and Simplified Chinese typography. This is revised V4 design preview with fictional metrics. Make Chinese text readable and all bottom navigation visible. Recompose content as needed. Four main pages 概览 / 代理 / 组网 / 设置.
Required corrected behavior:
Overview selected 代理+组网. Global summary amber 部分可用; proxy card state 未配置 with 导入配置 button, mode 规则/全局/直连 disabled until configured, not green started. Mesh card green 已连接 with192.168.20.6 and在线3台 (not3/3), independently operating. Notice 代理未配置,组网仍可用. Traffic card title 当前组网流量 subtitle 隧道统计,含控制流量; down82KB/s up35KB/s and subtle sparkline; no totals mixing proxy with mesh or duplicate summing. Rows Redmi_AX6 直连 7ms 链路RTT; DIG-US 直连167ms 链路RTT; ORA-JP 中继267ms 路由估算, each small down/up numbers. Primary bottom 断开全部; small outline 补齐代理配置. Capability selector仅组网/仅代理/代理+组网 must include hint 切换运行功能可能需要重新连接.
Proxy main page is a separate illustrative configured state, not same simultaneous snapshot: header small 示例:代理运行中. Mode规则 selected; current node JapanTokyo85ms label 测试耗时; badge 手动选择. Candidate list show selected versus availability as separate markers, selected JapanTokyo, HK42ms tested available, SG 未检测, US 超时. Node selection row 手动 / 自动. Footer 自动模式下点选节点将切回手动. Settings rows 节点来源与订阅 / 导入节点 / 分流规则. Group priority notice only 组网有效地址优先,普通模式规则不覆盖.
Mesh main header green 运行中; localaddress192.168.20.6; 在线3台. list node details distinctions直连可用 versus 当前路径, include7ms链路RTT and267ms路由估算. accepted subnet192.168.21.0/24 status统一分流已生效 (not OSrouteinstalled, this is planned combined mode). Settings entry组网配置 and线路策略.
Settings main grouped items 默认配置与保存 / 组网配置 / 节点来源与订阅 / 分流与DNS / 启动与后台 / 网络诊断 / 运行日志. 自动接入公告子网 toggle ON helper关闭将撤销已自动接入子网. Bottom version0.2.0设计预览.
Avoid any claim all switches already implemented. All four pages illustration states independent, no credentials.
proxy
Edit supplied MeshPort board A, preserving four full straight-on phones, ivory white cyan teal cards, restrained styling and readable Simplified Chinese. Keep all content and buttons inside safe margins.
Four pages: 导入节点 / 节点来源与订阅 / 代理节点详情 / 分流规则.
1 导入节点: tabs订阅链接/配置文件/扫码. show name自用代理, addresshttps://example.com/sub, button解析预览. Preview成功解析8个节点; unsupported2条 small amber note可查看原因. Include a concise notice普通导入仅提取节点,不替换组网、路由或DNS. selector导入方式新增来源 / 更新同一来源. Auto-update toggleON interval24小时. Footer导入8个节点 teal. Scan helper supportsrecognizednodeURLs, do not promise arbitrary subscriptionformats.
2 节点来源与订阅: hero explanatory来源启用后加入节点列表,不自动切换当前出口. cards自用代理 启用 8个节点, 当前选中节点来自此来源, update/editactions;备用代理toggleOFF 3个节点;手动节点 1个 chevron separate source notsubscription. lastupdateerroramber tiny保留上次可用节点. one inline confirm state 删除正在使用的来源? 将移除8个节点;需要先选择其他出口 with取消 and选择替代节点 buttons, not automatic silentlydelete. This confirmation can be bottom sheet, dim underlyingverylight.
3 代理节点详情: 日本·东京, badges来源自用代理 / 已选中 / 检测可用;85ms labelHTTP测试耗时 not RTT; protocolVLESS read-only fieldsjp.example.com443 TCP TLS enabled credentials masked. Note订阅节点只读,更新由订阅管理. buttons测试连接 / 复制为手动节点. primary选择此节点 separated from startingtheVPN, helper选择节点不会启动代理. No editable originalsubscriptioncredentialseye.
4 分流规则: top small current mode全局; locked fixed systemgroup组网有效地址→MeshPort with lockicon; text始终生效. ordinaryrulelist国内网站→直连 and广告过滤→拦截 visuallygrey pausedlabel 全局模式暂停. Editable roworderdraghandles onlyordinaryruleitems; no “其他网站” movablecatchall. bottomfixedcard普通流量默认出口→当前代理 withlock; under规则模式由规则决定,全局模式固定代理. Button添加规则; hint规则编辑不会覆盖系统组网规则. All cardsfictional.
network_config
Edit supplied MeshPort four-screen network configuration board. Preserve four complete mobile phones, Chinese labels, warmwhite cards, cyan andteal, safearea. Titles 基础配置 / 连接与打洞 / 高级配置 / 线路策略. Correct existing semantic problems, don't just change title.
Screen1基础配置: small amberbanner 草稿·尚未保存. NetworkGameNet secretmasked nodeMeshPort-Android IPv4192.168.20.6 /24; DHCP switchdisabled note当前系统模式需静态地址. 组网方式 radio 手动 / 公共引导节点 / 独立. Show manual initialnodes tcp://relay-us.example.com:52015 tcp://relay-jp.example.com:52015. Helper初始节点用于发现组网节点,不是上网代理. compact addressvalid check虚拟IP格式有效,连接时检查已知地址冲突. footer 保存配置 filled, 重新连接 disabled untilsaved; info修改地址或组网身份需重连.
Screen2连接与打洞: principal首选协议UDP dropdown and监听UDP0.0.0.0:11010 add address action. P2P toggleOFF in this illustrative screen. UDP打洞、TCP打洞、对称NAT打洞 allgrey disabled retainingtheirlast-on values and note启用P2P后可调整打洞设置. UPnP grey OFF capabilitylabel当前SDK未开放. Separate IPv4 STUN row默认服务器 / 自定义chevron; independent IPv6 STUN row默认服务器 / 自定义chevron, notthree mutuallyexclusiveoptions. Footer保存配置, helper修改连接参数可能需要重连.
Screen3高级配置: group已支持 private networkmodeON, IPv6ON, 延迟优先ON. 加密传输固定row 始终开启 with lock noeditabletoggle. section暂未支持 grey rows KCP/QUIC代理, 发布本地子网, 出口节点, 系统转发, 多线程/仅物理网卡 each small 当前SDK未开放, don't present enabledswitches. info学习远端子网不等于发布本地子网. bottom查看完整TOML outlined; warning修改后先校验,需重连的配置不会立即生效.
Screen4线路策略: radio modes自适应selected / 直连优先 / 延迟优先 / 跳数优先, NOT指定中继asmode. explanatory质量接近优先直连,持续明显改善才切换. form真实支持字段 绝对改善门槛15ms; 相对改善门槛15%; 持续确认时长10秒; 切换冷却时长30秒. UDP优先toggleON. 候选中继 自动发现 / 手动筛选, helper候选列表不强制中继,直连仍可使用. bottomsmall group目标节点DIG-US, 当前路径直连167ms, notglobalpath. footer保存策略, status待应用. All quantitativevaluesdesignexamples.
network_config_fix
Precise final correction of the supplied four-phone MeshPort V4 configurationboard. Keep every phone, spacing, palette and all unrelated content unchanged. On phone3 高级配置, REPLACE the editable 延迟优先 toggle and its erroneous performance explanation with a READ-ONLY row named 线路选择, value 使用线路策略设置, with small helper 由线路策略统一决定,避免重复开关 and chevron link to线路策略. Do not provide a second latency-firstswitch. On phone2连接与打洞 fix监听地址 to show complete URI udp://0.0.0.0:11010 rather thanbare0.0.0.0. On phone4线路策略 keep all existing15ms,15%,10秒,30秒 parameters andfourmodes andcandidatefiltersemantics. Do not alter any other controls. Clear readableChinese exactwording and all phonesfullyvisible.
network_details
Edit supplied MeshPort four-screen node/routes/diagnostic board, preservecomplete straightonphones andwarmivory whitecyan teal visualtheme. Readable Chinese, no cropped buttons. Pages 节点详情 / 自动接入子网 / 子网详情 / 网络诊断.
1节点详情Redmi_AX6: onlinegreen, address192.168.20.3. clear 当前转发路径 本机→Redmi_AX6 直连UDP and separate 可用连接 UDP直连1条, notsamefact. RTT7ms label链路RTT, updated18:17:06. small sparkline最近60秒. traffic↓82KB/s ↑35KB/s, totals4.9MB5.5MB label隧道统计·包含控制流量. NATPortRestricted coreversion2.6.4. 公告子网192.168.21.0/24green已生效. button测试连通性. tinyhint未测得或过期的RTT显示—.
2自动接入子网: segmented已生效1 / 待接入1 / 未接入1. showcards192.168.21.0/24green已生效; 发布者Redmi_AX6、备用NAS; 当前下一跳Redmi_AX6; 同网段多个发布节点合并展示. second10.80.0.0/24blue待接入 正在更新分流. third192.168.20.0/24amber未接入 与虚拟网段重叠. intro仅接入通过校验的公告,不接管全部私有地址. policyrows /16至/32 最大32条 私有IPv4. Footer刷新公告; secondarylastupdate18:17.
3子网详情192.168.21.0/24: row 发布节点Redmi_AX6; 当前下一跳Redmi_AX6; 接入方式统一分流; 接入状态已生效; 更新时间18:17. NOT系统路由installed onthiscombined-modeexample. Small hint应用内模式显示应用内可用,独立系统模式显示系统路由. path本机192.168.20.6→Redmi_AX6→目标192.168.21.201. testaddress192.168.21.201 port5900; button测试连接; resultTCP连接成功12ms label连接耗时. information组网不可用时不自动转到互联网代理; 公告撤销后同步更新接入状态. Connectionlost canillustrate smallinlinegreybadge暂无异常 notcontradictions.
4网络诊断: targets192.168.21.201 port5900. tabsTCP连接 / UDP回显 / 组网路径, TCPselected. count10 timeout3秒. button开始检测. green10/10成功; 最小连接耗时7ms 平均12ms 最大18ms; 检测失败率0% NOT丢包率. path heading组网下一跳, notpublictraceroute. threechecklist 组网引擎运行 / 子网分流已生效 / TCP5900端口可达. noteUDP检测需目标支持回显,未响应不等于设备离线. Bottom导出诊断报告. Corrected metrics, realistic design-only samples.
settings
Edit MeshPort supplied four-screen settings board to revised logical V4 design. Preservecomplete phones, warmivory white roundedcards cyan-teal and Chinese typography. Four pages DNS设置 / 默认配置与保存 / 启动与后台 / 运行日志. Important: create coherent realistic mobile content, concise, no overflowing bottomcontrols.
1DNS设置 topbadge已保存·待应用. group普通解析: 直连DNS系统解析; 代理DNShttps://dns.example.com/dns-query, 请求出口当前代理; 启动解析系统解析 helper用于解析代理服务器初始地址. group组网解析: 匹配域名home.arpa; DNS服务器192.168.20.3; 请求出口MeshPort; 不可达行为返回失败,不使用公网DNS. DNS缓存toggleON; FakeIPtoggleOFF, note组网域名始终排除FakeIP. Bottom保存配置; action应用更改; inlinehint应用失败保留原配置. Do not show technical “JNI” etc.
2默认配置与保存: hero当前来源 已保存配置; group 当前网络GameNet IP192.168.20.6/24. toggle连接成功后自动保存ON; 启动恢复已保存配置ON; 自动连接OFF. Info优先保存配置,无保存时加载安装包默认值. privacyambernote已保存配置加密存储;自用安装包默认配置含密钥,请勿分发. primary保存当前草稿. showbottomconfirmation sheet 恢复安装包默认配置? subtitle仅加载到草稿,不立即保存或重连. buttons取消 / 载入草稿. Smallunderlyingdelete row删除保存配置 helper下次启动将重新载入安装包默认值. No claim exit-auto-save.
3启动与后台: 安卓page group启动 开机启动disabled当前版本未开放; 打开应用自动连接OFF; 恢复上次功能选择ON helper只恢复选择,不恢复连接状态. group后台 前台通知 enabledlocked; 电池优化 未放行 with前往系统设置 action; 后台运行权限待检查. group恢复 自动重连ON designplanned; 网络变化重试ON; compact note以当前平台实现能力开放. Smallstatebanner等待系统VPN授权 and helper授权完成前不标记已连接. bottom检查运行环境. ShowOSpolicy actual constraintsnotpermanentguarantee.
4运行日志: filters全部/组网/代理/路由/错误; search. rows with timestampshort events 已应用子网规则192.168.21.0/24; 组网UDP直连建立; 代理节点测试完成85ms; 读取保存配置; 订阅更新失败保留旧节点 (amber). group设置日志级别信息; 敏感信息脱敏locked始终启用; 容量上限1000条; 导出范围最近1小时. note密钥、订阅令牌不会导出. bottom导出脱敏日志 / 清空当前显示; tinyhint清空显示不会删除已导出文件. These are plannedUIstates, no secret strings or real subscriptionURLs.
editors
Edit supplied MeshPort four-phone first-use/editorboard, preserve fully visible phones, ivory white cyan teal style, crispChinese.
Titles 首次使用 / 添加手动节点 / 编辑订阅 / 编辑分流规则.
1首次使用: logoMeshPort subtitle代理与组网,一个客户端. selected仅组网 card, otherchoices仅代理、代理+组网. configstatus仅show默认组网配置已载入 green, group选择或导入其他组网配置 outlinedrow. Proxyconfigurationrow notrequired note仅组网无需代理配置. VPNpermission未申请 withhelper点击连接时由系统请求授权. rememberfunctionchoiceON. bottom开始使用 button thenhelper进入首页,不自动连接. For otherchoices conditionalrequiredconfigs describedconcise inonehint配置要求随使用方式变化.
2添加手动节点: small sourcebadge手动节点. protocolVLESS dropdown; fields名称日本·东京; serverjp.example.com; port443; UUIDmasked. 传输TCPselected / WebSocket / gRPC. Single dropdown安全方式TLS (choices无/TLS/Reality) NOT independentTLSswitch. TLSfieldsserverNamejp.example.com, 验证证书ON. collapsed高级参数 andnote字段随协议与传输方式变化. optionalerrorstate inputport443validgreen; bottomonlytwoactions 测试草稿 outlined and 保存节点 teal, no topduplicate保存or创建. helper测试不会保存或启动代理.
3编辑订阅: amberbadge草稿·地址已修改. fields名称自用代理 URLhttps://example.com/new-sub. autoupdateON interval24小时 WiFionlyOFF. 保留手动节点ON (nodesstayindependent manualsource); 保留当前节点选择ON helper原节点消失时要求选择替代节点. lastupdate8nodes successfulold timestamp. buttons 保存订阅 and 保存并更新; small inlinehelper立即更新使用已保存地址,修改需先保存. discrete删除订阅 redlink withfootnote删除前检查当前出口是否引用此来源. Failureupdate note更新失败保留原节点.
4编辑分流规则: 名称国内网站; matchingtype dropdown域名后缀 instead ofambiguousglobtabs; textareaexample.cn only(no*.); explanation匹配example.cn及其子域名. note其他类型:精确域名、IP网段、规则集. 当前运行功能仅组网 smallgreylabel. actionradios直连selected / 当前代理disabled helper仅组网时不可用 / 拦截. ruleenabledON. lockednotice系统组网规则先于普通规则. orderrow位于普通规则第2条 chevron. previewexample.cn→直连 / a.example.cn→直连. bottom保存规则onlyone, no redundanttopSave. smallhint规则仅作用于普通流量. All changesdraft andtestedseparately; no promiseshotreloadalwayssafe.
editors_fix
Precise final corrections to supplied four-phone MeshPort V4 editor board; preserve every unrelated item and warmivory cyan-teal styling. On phone3编辑订阅, switch仅Wi-Fi更新 is OFF. Replace its helper exactly with 关闭时允许移动网络更新. Replace the editable 保留手动节点 toggle with a LOCKED read-only row 手动节点独立保存, value 始终保留, helper 手动节点不属于订阅,不随订阅更新删除. Keep 保留当前节点选择 control and original-node-disappeared replacement explanation. Keep Save andSaveandupdate actions.
On phone1首次使用, order choices仅组网(selected),仅代理,代理+组网 consistently. Row选择或导入其他组网配置 should be neutral secondaryaction withgreyplus, NOTamberwarning, because默认组网配置已载入. Atbottom记住我的选择 use ONE switch only; remove duplicate checkbox.
On phone2 and4 leave protocolform anddomain-suffix semantics exactly as they are. Keepallphonesfullyvisible, legibleChinese andno newlabels.
states
Use case ui-mockup. Additional STATE board for revised MeshPort V4, four complete mobilephoneviewports sidebyside, Simplified Chinese clear text, same warmivory white roundedcards palecyan teal style, no purple, no actualsystemdialogimpersonation, fictitiousdemo only. These are states of existingpages, NOTnew navigationpages. Abovephoneslabels 等待授权 / 导入失败 / 保存后需重连 / 当前节点被移除.
Phone1overviewMeshPort: selected代理+组网, totalstate等待授权 cyan; proxy待启动 andmesh待启动 separatelygrey, no greenconnected. centeredcard 需要系统VPN授权 subtitle系统将显示连接请求,请在系统弹窗确认; button继续授权; link取消连接. smallprogress步骤配置校验完成✓ → 等待授权 → 启动服务, lasttwoinactive. No simulatedOS permission grant button. bottomtabs概览代理组网设置.
Phone2导入节点: inputexample.com/sub, mode订阅链接; resultdownloadfailedamber 获取订阅失败 subtitle连接超时,现有节点不受影响; buttons重试 and修改地址. secondarymuted解析预览未完成,导入buttondisabled. smallinlineunsupportedformatmessage(notsecond simultaneousfatalstate)帮助支持的格式与错误详情 chevron. User's inputretained.
Phone3基础配置 withnewdraftIPv4192.168.20.7 andbadge已保存·待生效. Bottomsheet 需要重新连接才能生效 subtitle虚拟IP已变更;当前游戏和远程连接可能中断. clearbuttons 稍后应用 / 重新连接. helper稍后应用保留当前运行配置. Uppercardshows当前运行192.168.20.6→保存配置192.168.20.7 explicitdifferent. No autoreconnect.
Phone4订阅更新: underlyingcard新订阅8个节点已解析 withnoappliedbadge; oldselectednode日本·东京 now removed. Bottomsheet当前节点已不在新订阅中; subtitle更新尚未应用,当前配置保留. List replacement香港42msradioselected / 新加坡108ms. buttons取消更新 / 选择并应用. helptext应用仅在确认后进行;必要时提示重连. Do not promiseallconnectionsuninterrupted. All fourphonecontentfits safearea.
states_fix
Precise small corrections to supplied MeshPort four-phone stateboard. Preserve all other composition andtext. Phone1 currentmodecontrol MUST have THREE options 仅组网 / 仅代理 / 代理+组网, with 代理+组网 selected. Bothservices therefore remain待启动 while waitingauthorization. Replace the existing two-option 代理/组网 control completely; threeoptiontextmustallfit. Phone2subscriptionURLfield shouldread https://example.com/sub withscheme, notbareexample.com/sub. Phone4 headingabovechange-list shouldread 订阅变更预览 instead of节点列表(8), because the removedJapanrowisadiffentrynotanewnode. All remainingcontentanddialogsidentical. ClearChinese, fullyvisible, no extra explanations orlogochanges.