跳到正文
北京时间
原文
Elon Musk· @elonmusk · X·· 2026-05-19精选AI 评分71
AI 导读

马斯克在推文中请求帮助提升 Grok Build。用户 @morganlinton 分享了使用 Grok Build 完成 PasteLocal 项目中 relay 功能开发的体验,称赞其全面性令人惊叹。该功能实现周期短,且包含了端到端加密、数据持久化、自动同步、双向命令行交互等关键技术特性,并经过了多轮严格的代码审查与修复。马斯克此举意在收集更广泛的反馈,以持续改进该开发工具。

推荐理由

below_threshold:T2 推文门槛 75,当前 finalScore=71

正文 · AI 翻译

请帮助让 Grok Build 变得伟大!

非常感谢,Elon。

引用Morgan@morganlinton
呼,Grok Build 真的很彻底,相当不可思议。 PasteLocal 的 Relay 功能完成了,现在推送到 Github。 如果你想了解这增加了什么,这里有一些更多信息,这是我真的很想加入的功能,老实说,我没想到这周能完成。 • 对等端到端加密:剪贴板数据会针对每个已配对设备单独加密,使用 X25519 + HKDF + AES-GCM(明文永远不会离开客户端) • 持久化存储:relay 状态现在存储在原子性的 state.json 中,并带有适当的 TTL 处理和压缩。待处理的剪贴内容能在 relay-server 重启后保留 • 安全压缩:修复了过期/压缩期间不安全的 map 变更,这可能导致数据丢失或未定义行为 • 完整的双向 CLI:新命令:pastelocal relay send、inbox、fetch 和 status,以及 pastelocal-remote --relay --peer --send • 自动同步:当 watch.enabled + http://relay.auto_upload 开启时,有意义的剪贴板变化会自动推送到已配对设备 • 改进的 DX:doctor 检查现在只在启用 relay 时显示,TUI 会显示基本的 relay 状态 • 多轮审查:经历了完整的实现 → 审查 → 修复 → 再审查(工作量 4),外加最后一轮有针对性的回归修复 试试看,请发送任何和所有反馈!
原文

Phew, Grok Build is really thorough, pretty incredible. Relay feature for PasteLocal is done, pushing to Github now. And if you want to know what this adds, here's a bit more about it, this is a feature I really wanted in there, and honestly didn't really expect to have done this week. • Per-peer E2E encryption: clipboard data is encrypted individually for each paired device using X25519 + HKDF + AES-GCM (no plaintext ever leaves the client) • Durable persistence: relay state is now stored in an atomic state.json with proper TTL handling and compaction. Pending clips survive relay-server restarts • Safe compaction: fixed unsafe map mutation during expiration/compaction that could cause data loss or undefined behavior • Full bidirectional CLI: new commands: pastelocal relay send, inbox, fetch, and status, plus pastelocal-remote --relay --peer --send • Auto-sync: when watch.enabled + http://relay.auto_upload are on, meaningful clipboard changes are automatically pushed to paired devices • Improved DX: doctor checks are now only shown when relay is enabled, and the TUI shows basic relay status • Multiple review cycles: went through full implement → review → fix → re-review (effort 4), plus a final targeted regression fix round Try it out and please send any and all feedback!

在 X 查看被引用的帖子

来源:Elon Musk · x.com