{"_id":"@anoromi/kokoro-rocm-protocol","_rev":"2-31189f755bea43ab58ef7ed294f74b34","name":"@anoromi/kokoro-rocm-protocol","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@anoromi/kokoro-rocm-protocol","version":"0.1.0","license":"MIT","_id":"@anoromi/kokoro-rocm-protocol@0.1.0","maintainers":[{"name":"anoromi","email":"and.zagorulko@gmail.com"}],"homepage":"https://github.com/Anoromi/kokoro-rocm/tree/main/packages/protocol#readme","bugs":{"url":"https://github.com/Anoromi/kokoro-rocm/issues"},"dist":{"shasum":"784c021ee0e3855ad613a181d887596d31fc1907","tarball":"https://registry.npmjs.org/@anoromi/kokoro-rocm-protocol/-/kokoro-rocm-protocol-0.1.0.tgz","fileCount":12,"integrity":"sha512-lEv/HwtLMhCwuc2uLGuA0EtS/J4F+cKkRz6GlPh5j1253EX0bx8kOp0u4dTUazbaTewfgwXUpU6PFhwp1Wb9Hw==","signatures":[{"sig":"MEUCIQDvwreR3ws1kMfi19JTG/dEXRz6dvsb0GoEriyHblbdpAIgegddQPJldgvTPAijqQxAv7+f5621frZwZh8mm8qxdtA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":33739},"type":"module","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"},"./encode":{"types":"./dist/encode.d.mts","import":"./dist/encode.mjs"},"./schema":{"types":"./dist/schema.d.mts","import":"./dist/schema.mjs"}},"gitHead":"003afbddc4d4c63e1f14df55bad2afcf37d4abe1","private":false,"scripts":{"test":"bun test test","build":"tsdown src/index.ts src/schema.ts src/encode.ts --format esm --dts --clean","clean":"rm -rf dist","prepack":"bun run build","pack:dry":"npm pack --dry-run","typecheck":"tsc --noEmit","publish:npm":"npm publish --access public","prepublishOnly":"bun run typecheck && bun run test && bun run build"},"_npmUser":{"name":"anoromi","email":"and.zagorulko@gmail.com"},"repository":{"url":"git+https://github.com/Anoromi/kokoro-rocm.git","type":"git","directory":"packages/protocol"},"_npmVersion":"10.9.4","description":"Effect Schema protocol definitions for kokoro-rocm clients","directories":{},"_nodeVersion":"22.22.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"effect":"4.0.0-beta.45","tsdown":"^0.20.3","@types/bun":"^1.3.13","typescript":"^6.0.3"},"peerDependencies":{"effect":"4.0.0-beta.45"},"_npmOperationalInternal":{"tmp":"tmp/kokoro-rocm-protocol_0.1.0_1778337769725_0.6926140340979665","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@anoromi/kokoro-rocm-protocol","version":"0.2.0","private":false,"type":"module","description":"Effect Schema protocol definitions for kokoro-rocm clients","license":"MIT","repository":{"type":"git","url":"git+https://github.com/Anoromi/kokoro-rocm.git","directory":"packages/protocol"},"bugs":{"url":"https://github.com/Anoromi/kokoro-rocm/issues"},"homepage":"https://github.com/Anoromi/kokoro-rocm/tree/main/packages/protocol#readme","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs"},"./schema":{"types":"./dist/schema.d.mts","import":"./dist/schema.mjs"},"./encode":{"types":"./dist/encode.d.mts","import":"./dist/encode.mjs"}},"scripts":{"clean":"rm -rf dist","build":"tsdown src/index.ts src/schema.ts src/encode.ts --format esm --dts --clean","typecheck":"tsc --noEmit","test":"bun test test","prepack":"bun run build","prepublishOnly":"bun run typecheck && bun run test && bun run build","pack:dry":"npm pack --dry-run","publish:npm":"npm publish --access public"},"peerDependencies":{"effect":"4.0.0-beta.45"},"devDependencies":{"@types/bun":"^1.3.13","effect":"4.0.0-beta.45","tsdown":"^0.20.3","typescript":"^6.0.3"},"_id":"@anoromi/kokoro-rocm-protocol@0.2.0","gitHead":"ee441296155ee5e0b0636d5bb5b00b55a5e033e5","_nodeVersion":"22.22.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-fY6HiaLwS3B84PGaXwUaQ//tYIuAZ/7DsYpDJ+s0o2T9MD696e0fwSqigB2pE3/FllrvigKB35whgfE7es5vrw==","shasum":"d8345e1f13d6cbb52fd1716e454ea0ef62adc9f0","tarball":"https://registry.npmjs.org/@anoromi/kokoro-rocm-protocol/-/kokoro-rocm-protocol-0.2.0.tgz","fileCount":12,"unpackedSize":34867,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCg74Q3ZkeztKED7Tl4BsHtPygOf1DgI7QdRuHoxQnZ3gIgdCuP9JfesA0cTsoRzoKEGfhXiOo5NmizYx8BgR+ZdZo="}]},"_npmUser":{"name":"anoromi","email":"and.zagorulko@gmail.com"},"directories":{},"maintainers":[{"name":"anoromi","email":"and.zagorulko@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/kokoro-rocm-protocol_0.2.0_1778411081766_0.39269604141684455"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-09T14:42:49.655Z","modified":"2026-05-10T11:04:42.009Z","0.1.0":"2026-05-09T14:42:49.878Z","0.2.0":"2026-05-10T11:04:41.909Z"},"bugs":{"url":"https://github.com/Anoromi/kokoro-rocm/issues"},"license":"MIT","homepage":"https://github.com/Anoromi/kokoro-rocm/tree/main/packages/protocol#readme","repository":{"type":"git","url":"git+https://github.com/Anoromi/kokoro-rocm.git","directory":"packages/protocol"},"description":"Effect Schema protocol definitions for kokoro-rocm clients","maintainers":[{"name":"anoromi","email":"and.zagorulko@gmail.com"}],"readme":"# @anoromi/kokoro-rocm-protocol\n\nEffect Schema definitions and JSON line helpers for `kokoro-rocm` clients.\n\nThis package contains only the reusable protocol surface:\n\n- daemon Unix-socket request/response schemas\n- daemon streaming event schemas\n- session NDJSON request/event schemas\n- TypeScript types inferred from the schemas\n- encode/decode helpers for JSON lines\n\nIt does not include a socket client, daemon auto-start logic, filesystem path\nresolution, or CLI code.\n\n## Install\n\n```bash\nnpm install @anoromi/kokoro-rocm-protocol effect@4.0.0-beta.45\n```\n\n## Usage\n\n```ts\nimport {\n  decodeDaemonLine,\n  decodeSessionLine,\n  eventLine,\n  requestLine,\n} from \"@anoromi/kokoro-rocm-protocol\"\n\nconst request = decodeSessionLine(\n  '{\"id\":\"1\",\"method\":\"health\",\"params\":{}}'\n)\n\nconst daemonLine = requestLine(\"2\", \"health\", {})\n\nconst event = eventLine({ event: \"ready\", version: \"0.1.0\" })\n\nconst daemonResponse = decodeDaemonLine(\n  '{\"id\":\"2\",\"ok\":true,\"result\":{\"status\":\"ok\"}}'\n)\n```\n\n## Session NDJSON\n\n```json\n{\"id\":\"1\",\"method\":\"synthesize\",\"params\":{\"text\":\"Hello\",\"output_path\":\"/tmp/hello.wav\",\"timings_path\":\"/tmp/hello.json\",\"voice\":\"af_sarah\",\"speed\":1,\"target_wpm\":null,\"format\":\"wav\"}}\n```\n\nCommon session events:\n\n```json\n{\"event\":\"ready\",\"version\":\"0.1.0\"}\n{\"id\":\"1\",\"event\":\"accepted\"}\n{\"id\":\"1\",\"event\":\"started\"}\n{\"id\":\"1\",\"event\":\"chunk\",\"chunk\":{\"index\":0,\"text\":\"Hello\",\"start\":0,\"end\":1.2,\"duration\":1.2,\"timing_basis\":\"native\"}}\n{\"id\":\"1\",\"event\":\"finished\",\"result\":{\"output_path\":\"/tmp/hello.wav\",\"timings_path\":\"/tmp/hello.json\"}}\n```\n\n## Compatibility\n\nThis package uses Effect 4 schemas and declares `effect@4.0.0-beta.45` as a peer\ndependency.\n\nGenerated `dist/` files are produced during package build and publish. They are\nnot committed in the `kokoro-rocm` monorepo.\n","readmeFilename":"README.md"}