{"_id":"@63mmo/protocol","_rev":"2-54530bb164b5d4ff1e8c41ee6b9b31c6","name":"@63mmo/protocol","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@63mmo/protocol","version":"0.1.0","license":"MIT","_id":"@63mmo/protocol@0.1.0","maintainers":[{"name":"keqing77","email":"zcx668265@outlook.com"}],"dist":{"shasum":"e7e6d4bdb2c60e5668e039797509959f4c182bb6","tarball":"https://registry.npmjs.org/@63mmo/protocol/-/protocol-0.1.0.tgz","fileCount":28,"integrity":"sha512-L2rSg0ZMOpHJY1I4oOXE1pb+sr5fjpR34dWHBvsg0nHK0VrSccZlmrl4mIHzFeEV8vErrV/y77ONNk966hMt/w==","signatures":[{"sig":"MEQCIGbA4TIRSiVM+aJqFfBdRu1ScmSVtRk828YcW6aweiWFAiBc5wlupILyGLTm1ffOKpVzMBLdU3ufLUFvZbpWIxGkxw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":33507},"_from":"file:63mmo-protocol-0.1.0.tgz","types":"./src/index.ts","exports":{".":{"types":"./src/index.ts","default":"./src/index.ts"},"./package.json":"./package.json"},"_npmUser":{"name":"keqing77","email":"zcx668265@outlook.com"},"_resolved":"/private/var/folders/f8/953xb5vj2j39wzvk2jkkp9280000gn/T/141d671602b225f877ef5db3e402c7f5/63mmo-protocol-0.1.0.tgz","_integrity":"sha512-L2rSg0ZMOpHJY1I4oOXE1pb+sr5fjpR34dWHBvsg0nHK0VrSccZlmrl4mIHzFeEV8vErrV/y77ONNk966hMt/w==","_npmVersion":"11.6.1","description":"63MMO 客户端↔服务器 WS/REST 协议类型（hello/subscribe/sync/delta/events/ping-pong 帧），由 mmcore 经 ts-rs 生成","directories":{},"_nodeVersion":"24.11.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/protocol_0.1.0_1788277548253_0.9778669549733272","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@63mmo/protocol","version":"0.1.1","description":"63MMO 客户端↔服务器 WS/REST 协议类型（hello/subscribe/sync/delta/events/ping-pong 帧），由 mmcore 经 ts-rs 生成","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"publishConfig":{"access":"public"},"devDependencies":{"esbuild":"^0.28.2","typescript":"~5.9.3"},"scripts":{"typecheck":"tsc --noEmit -p tsconfig.json"},"_id":"@63mmo/protocol@0.1.1","_integrity":"sha512-KAIWGqolLZVitvzB+RzzRPM0cf3dfxMreGb2QqW69yj7vp9gbguPUi5FV5bJU6P7CTLpz9h33X9wVOqo4+/qaA==","_resolved":"/private/var/folders/f8/953xb5vj2j39wzvk2jkkp9280000gn/T/c891df2871c709d9459de4fcf6222726/63mmo-protocol-0.1.1.tgz","_from":"file:63mmo-protocol-0.1.1.tgz","_nodeVersion":"24.11.0","_npmVersion":"11.6.1","dist":{"integrity":"sha512-KAIWGqolLZVitvzB+RzzRPM0cf3dfxMreGb2QqW69yj7vp9gbguPUi5FV5bJU6P7CTLpz9h33X9wVOqo4+/qaA==","shasum":"3454952075dc74b48a80b53ca8e9797c880f0b1d","tarball":"https://registry.npmjs.org/@63mmo/protocol/-/protocol-0.1.1.tgz","fileCount":57,"unpackedSize":52628,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDJTcV4xOZc5lvc5N9Xw0n4lvtIWZpVEBHh9X3AaihQXQIhAOGPdwr6Ndyc2+jPRsB3Pj669QFFuj2Ih2R/43q5zaRQ"}]},"_npmUser":{"name":"keqing77","email":"zcx668265@outlook.com"},"directories":{},"maintainers":[{"name":"keqing77","email":"zcx668265@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/protocol_0.1.1_1788314463677_0.5008082065897019"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-01T15:45:48.082Z","modified":"2026-09-02T02:01:04.039Z","0.1.0":"2026-09-01T15:45:48.383Z","0.1.1":"2026-09-02T02:01:03.831Z"},"license":"MIT","description":"63MMO 客户端↔服务器 WS/REST 协议类型（hello/subscribe/sync/delta/events/ping-pong 帧），由 mmcore 经 ts-rs 生成","maintainers":[{"name":"keqing77","email":"zcx668265@outlook.com"}],"readme":"# @63mmo/protocol\n\n63MMO 客户端↔服务器协议类型。\n\n- `src/index.ts`：手写便捷层——再导出生成类型 + 协议版本字面量类型；\n- `src/generated/`：`crates/mmcore::proto` 经 ts-rs 生成的帧与实体类型\n  （`pnpm gen:ts`，生成文件入库）。其中 `Res.ts` 为 `scripts/postgen-ts.mjs`\n  从 sdk 生成目录同步的副本——ts-rs export_to 单目的地，`MineralState`\n  引用 `Res` 的原始导入是 monorepo 内相对路径，发布后越出包根无法解析\n  （protocol@0.1.0 事故）；副本使发布件自包含，protocol 保持零依赖；\n- `src/generated/__fixtures__/frames.json`：真实 serde 序列化样例\n  （`cargo test -p mmcore` 写入；`pnpm parity:check` 的 TS 侧对拍数据源，\n  漂移由 gen:ts 校验一并覆盖）；\n- WS 帧类型与线上格式（JSON 文本、tag `\"t\"`、camelCase）：docs/tech/02\n  「客户端架构」M3 落地登记；\n- 公开发布（公开契约，便于第三方工具；2026-09-01 起 npm `@63mmo` 组织）。\n  发布件经 prepack 构建 `dist/`（tsc 声明 + esbuild 常量产物），入口不指向\n  裸 `.ts` 源——消费者不编译本包源码；\n","readmeFilename":"README.md"}