{"_id":"@agent-wasm/react","name":"@agent-wasm/react","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@agent-wasm/react","version":"0.1.0","description":"React workbench, chat, and UI components for agent-wasm workspaces.","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"},"./workbench":{"types":"./dist/workbench.d.ts","import":"./dist/workbench.js","require":"./dist/workbench.cjs","default":"./dist/workbench.js"},"./chat":{"types":"./dist/chat/index.d.ts","import":"./dist/chat/index.js","require":"./dist/chat/index.cjs","default":"./dist/chat/index.js"},"./ui":{"types":"./dist/ui/index.d.ts","import":"./dist/ui/index.js","require":"./dist/ui/index.cjs","default":"./dist/ui/index.js"}},"dependencies":{"@brett_lamy/docstream":"0.1.0","@pierre/diffs":"^1.2.8","@radix-ui/react-dialog":"^1.1.15","@radix-ui/react-dropdown-menu":"^2.1.16","@radix-ui/react-scroll-area":"^1.2.10","@radix-ui/react-separator":"^1.1.8","@radix-ui/react-slot":"^1.2.4","@radix-ui/react-tooltip":"^1.2.8","@shadcn/react":"^0.1.0","@xterm/addon-fit":"^0.11.0","@xterm/xterm":"^6.0.0","clsx":"^2.1.1","react":"^19.2.4","react-aria-components":"^1.13.0","react-dom":"^19.2.4","tailwind-merge":"^3.5.0","@agent-wasm/sdk":"0.1.0","@agent-wasm/chat-core":"0.1.0"},"devDependencies":{"@types/node":"^25.0.10","@types/react":"^19.2.2","@types/react-dom":"^19.2.2","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":["**/*.css"],"publishConfig":{"access":"public"},"scripts":{"build":"tsup src/index.ts src/workbench.ts src/chat/index.ts src/ui/index.ts --tsconfig tsconfig.build.json --format esm,cjs --dts --clean --external @agent-wasm/core --external @agent-wasm/sdk --external @agent-wasm/chat-core --external react --external react-dom --external react-aria-components --external tailwindcss --external tailwindcss/utilities","test":"vitest run","type-check":"tsc --project tsconfig.json --noEmit"},"_id":"@agent-wasm/react@0.1.0","bugs":{"url":"https://github.com/BLamy/agent-wasm/issues"},"homepage":"https://github.com/BLamy/agent-wasm#readme","_integrity":"sha512-NxXzuYLoq5sFnHghotsZXjXu/St2Dr63KBSZbBm6WOuPLAmqOsHHHPSA08hgY06FSIM+UXdsj1NMY/3JZW9onA==","_resolved":"/private/var/folders/xj/jvddkcmd6y9_f79xzk2z_rd00000gn/T/982030d3560c9014af63555ea321ff90/agent-wasm-react-0.1.0.tgz","_from":"file:agent-wasm-react-0.1.0.tgz","_nodeVersion":"23.11.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-NxXzuYLoq5sFnHghotsZXjXu/St2Dr63KBSZbBm6WOuPLAmqOsHHHPSA08hgY06FSIM+UXdsj1NMY/3JZW9onA==","shasum":"60305a43c9500518617e7d3080ccdd67fff889b0","tarball":"https://registry.npmjs.org/@agent-wasm/react/-/react-0.1.0.tgz","fileCount":26,"unpackedSize":340597,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEqqsWyjr+tgfX0XG+rQIf14Qv830nsN2PKptf610+I0AiEArSbpJMQlidjPl6wkDJ0L9joq7LeKJ+pwrJmwxaEltt4="}]},"_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/react_0.1.0_1784961626333_0.0893076621858877"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-25T06:40:26.190Z","0.1.0":"2026-07-25T06:40:26.489Z","modified":"2026-07-25T06:40:26.706Z"},"maintainers":[{"name":"bel423","email":"bel423@gmail.com"}],"description":"React workbench, chat, and UI components for agent-wasm workspaces.","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/react\n\nThe reusable React layer over [`@agent-wasm/sdk`](https://www.npmjs.com/package/@agent-wasm/sdk):\na workspace provider, the agent **chat surface**, and the Radix UI primitives that\nsit on top of the CLI agents.\n\n```bash\nnpm install @agent-wasm/react @agent-wasm/sdk @agent-wasm/chat-core react react-dom\n```\n\n```tsx\nimport { AlmostnodeProvider, EditorPane, PreviewPane } from \"@agent-wasm/react\";\nimport { ChatScreen } from \"@agent-wasm/react/chat\";\n\n<AlmostnodeProvider workspace={workspace}>\n  <EditorPane />\n  <PreviewPane />\n  <ChatScreen\n    startAgentSession={(harness) => host.startAgentSession(harness)}\n    createAdapter={(session) => host.createConversationAdapter(session)}\n  />\n</AlmostnodeProvider>\n```\n\n## Subpaths\n\n| Import | Contents |\n| --- | --- |\n| `@agent-wasm/react` | `AlmostnodeProvider`, `useWorkspace`, `useWorkspaceSnapshot`, `EditorPane`, `PreviewPane`, `TerminalPane`, plus the chat + ui re-exports |\n| `@agent-wasm/react/chat` | `ChatScreen`, `TimelineFeed`, `ChatComposer`, `ToolCallCard`, `ElicitationCard` |\n| `@agent-wasm/react/ui` | Radix-based primitives: `Button`, `Dialog`, `DropdownMenu`, `Input`, `ScrollArea`, `Separator`, `Tooltip`, `cn` |\n\n## Host injection\n\n`ChatScreen` is host-agnostic — it takes `startAgentSession(harness)` and\n`createAdapter(session)` callbacks, so any host (the agent-wasm web IDE, your own\napp, …) can drive it. The concrete per-agent conversation adapters live with their\nagent packages or in the host, not here.\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-3af9cfa4dab1990b835beb1a8c154870"}