{"_id":"@agent-wasm/chat-core","name":"@agent-wasm/chat-core","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@agent-wasm/chat-core","version":"0.1.0","description":"Framework-free chat domain types and session registry for agent-wasm.","private":false,"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"}},"devDependencies":{"typescript":"^5.9.3","vitest":"4.0.18","tsup":"^8.5.0"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/BLamy/agent-wasm.git"},"sideEffects":false,"publishConfig":{"access":"public"},"scripts":{"build":"tsup src/index.ts --tsconfig tsconfig.build.json --format esm,cjs --dts --clean ","test":"vitest run --passWithNoTests","type-check":"tsc --project tsconfig.json --noEmit"},"_id":"@agent-wasm/chat-core@0.1.0","bugs":{"url":"https://github.com/BLamy/agent-wasm/issues"},"homepage":"https://github.com/BLamy/agent-wasm#readme","_integrity":"sha512-CdEpYIEbGbu3XItttZMxhiXR6lcKDeePGTMQpnpfNoUO0BRMkhmZHu94TNYzD+HJ/Nt9DbaaKq+yYW+8WlIH0Q==","_resolved":"/private/var/folders/xj/jvddkcmd6y9_f79xzk2z_rd00000gn/T/628dc5332079a5553cde22d1ef68d8ad/agent-wasm-chat-core-0.1.0.tgz","_from":"file:agent-wasm-chat-core-0.1.0.tgz","_nodeVersion":"23.11.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-CdEpYIEbGbu3XItttZMxhiXR6lcKDeePGTMQpnpfNoUO0BRMkhmZHu94TNYzD+HJ/Nt9DbaaKq+yYW+8WlIH0Q==","shasum":"69c8e16ebd84b82a23e1417b281d46669f08fa21","tarball":"https://registry.npmjs.org/@agent-wasm/chat-core/-/chat-core-0.1.0.tgz","fileCount":7,"unpackedSize":56483,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCvaNf7W2+WrbDrDAIu0wNWwZOasBuyPymJvUPMShK2DQIgefY5OWSmgk85Bb1xzinCMpwWfsbkskggIStfP0Qzah8="}]},"_npmUser":{"name":"bel423","email":"bel423@gmail.com"},"directories":{},"maintainers":[{"name":"bel423","email":"bel423@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/chat-core_0.1.0_1784961542615_0.5042269833153799"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-25T06:39:02.455Z","0.1.0":"2026-07-25T06:39:02.755Z","modified":"2026-07-25T06:39:03.055Z"},"maintainers":[{"name":"bel423","email":"bel423@gmail.com"}],"description":"Framework-free chat domain types and session registry for agent-wasm.","homepage":"https://github.com/BLamy/agent-wasm#readme","repository":{"type":"git","url":"git+https://github.com/BLamy/agent-wasm.git"},"bugs":{"url":"https://github.com/BLamy/agent-wasm/issues"},"license":"MIT","readme":"# @agent-wasm/chat-core\n\nThe dependency-free chat domain shared by [`@agent-wasm/react`](https://www.npmjs.com/package/@agent-wasm/react)\n(the chat UI) and the agent packages ([`@agent-wasm/code`](https://www.npmjs.com/package/@agent-wasm/code), …).\nNo React, no runtime — just types, pure tool-call encoders, and a session\nregistry, so agent packages stay framework-free and the dependency graph stays\nacyclic.\n\n```bash\nnpm install @agent-wasm/chat-core\n```\n\n## API\n\n- **Conversation types** — `AgentHarness`, `ChatMessage`, `ChatToolCall`,\n  `ChatElicitation`, `ConversationState`, and the `ConversationAdapter` interface\n  that the chat UI renders and each agent implements.\n- **Tool-call encoders** — `claudeToolUseToToolCall`, `buildUnifiedPatch`,\n  `ensurePatchHeaders`, `truncateToolOutput`.\n- **`agentSessionRegistry`** — a pub/sub registry of live CLI agent sessions\n  (`ActiveAgentSession`, `AgentSessionRegistry`).\n- **Chat preferences** — `CHAT_MODEL_OPTIONS`, `readChatModel`/`writeChatModel`,\n  `readChatEffort`/`writeChatEffort`, and friends.\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-8803d9145c1f8d631114363c6d01fc2d"}