源码阅读笔记、协议实现和底层机制解析。
- Web Terminal Demo 源码讲解:WebSocket + xterm.js + node-pty
web-terminal-pty.md— Web Terminal Demo 源码逐段讲解:静态服务路由、WebSocketServer 端口复用、pty.spawn 参数、前缀字节协议、FitAddon resize 链路、零构建 ESM、postinstall 源码编译 - feishuids 源码讲解:飞书 OpenAPI 查用户 userid 与群 chatid
feishu-ids.md— feishuids 源码讲解:飞书 OpenAPI 查 userid/chatid,ID 体系(userid/openid/unionid/chatid)、tenantaccesstoken 鉴权、code===0 成功约定、batchgetid 与可见范围遍历两级降级、分页协议、错误码速查 - PlayCraft 玩家侧源码讲解:像素游玩协议、虚拟时钟与跨局 lessons
playcraft-player.md— PlayCraft 玩家 agent 逐文件源码讲解:Playwright 虚拟时钟暂停、20ms held 状态与 repeat 压缩、pointer lock 双模鼠标、Codex app-server 结构化输出、干净沙箱断言、journal→六段报告→lessons 的记忆链