{"_id":"@agent-webkit/react","name":"@agent-webkit/react","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@agent-webkit/react","version":"0.2.0","description":"L2 React abstractions over @agent-webkit/core — useAgentSession hook with delta reconciliation, permission/question state, and reconnect.","license":"MIT","author":{"name":"BlitzJB"},"homepage":"https://github.com/BlitzJB/agent-webkit#readme","bugs":{"url":"https://github.com/BlitzJB/agent-webkit/issues"},"repository":{"type":"git","url":"git+https://github.com/BlitzJB/agent-webkit.git","directory":"packages/react"},"keywords":["claude","agent-sdk","react","hooks","anthropic","agent"],"type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"engines":{"node":">=18"},"publishConfig":{"access":"public"},"peerDependencies":{"react":"^18.0.0 || ^19.0.0"},"dependencies":{"@agent-webkit/core":"0.2.0"},"devDependencies":{"@testing-library/react":"^14.3.1","@types/react":"^18.3.0","happy-dom":"^14.0.0","react":"^18.3.0","react-dom":"^18.3.0","typescript":"^5.4.5","vitest":"^1.6.0"},"sideEffects":false,"scripts":{"build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit","test":"vitest run"},"_id":"@agent-webkit/react@0.2.0","_integrity":"sha512-GYv0RNEDtdmVDJ8+MXkR7DLYdkJFCPA0usjXMqgKh1KmO6NBDrCAbmmzBo9fIFy1OyvWJPwDmpvOtN4B80YTKA==","_resolved":"/private/var/folders/yj/g_x6cnk53n7dsdr1bkv34x840000gn/T/72045db3ced87f7395e116b88daec676/agent-webkit-react-0.2.0.tgz","_from":"file:agent-webkit-react-0.2.0.tgz","_nodeVersion":"25.6.1","_npmVersion":"11.9.0","dist":{"integrity":"sha512-GYv0RNEDtdmVDJ8+MXkR7DLYdkJFCPA0usjXMqgKh1KmO6NBDrCAbmmzBo9fIFy1OyvWJPwDmpvOtN4B80YTKA==","shasum":"311ec79c014e3f034808731c518a845ab850a6aa","tarball":"https://registry.npmjs.org/@agent-webkit/react/-/react-0.2.0.tgz","fileCount":15,"unpackedSize":33962,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDlTOpW7ISvricRYOPeDqDr39WFI8XexNfn76TkoqXm6AIgDXjGGUgTb/iZ2mgECN9CwEiljBO4LbQzkBlT4vVSjPg="}]},"_npmUser":{"name":"blitzjb","email":"blitz04.dev@gmail.com"},"directories":{},"maintainers":[{"name":"blitzjb","email":"blitz04.dev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/react_0.2.0_1777328916725_0.9951066266173876"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-27T22:28:36.662Z","0.2.0":"2026-04-27T22:28:36.938Z","modified":"2026-04-27T22:28:37.223Z"},"maintainers":[{"name":"blitzjb","email":"blitz04.dev@gmail.com"}],"description":"L2 React abstractions over @agent-webkit/core — useAgentSession hook with delta reconciliation, permission/question state, and reconnect.","homepage":"https://github.com/BlitzJB/agent-webkit#readme","keywords":["claude","agent-sdk","react","hooks","anthropic","agent"],"repository":{"type":"git","url":"git+https://github.com/BlitzJB/agent-webkit.git","directory":"packages/react"},"author":{"name":"BlitzJB"},"bugs":{"url":"https://github.com/BlitzJB/agent-webkit/issues"},"license":"MIT","readme":"# @agent-webkit/react\n\nL2 React abstractions over `@agent-webkit/core`.\n\n```tsx\nimport { useAgentSession } from \"@agent-webkit/react\";\n\nexport function Chat() {\n  const {\n    messages, status, pendingPermission, pendingQuestion,\n    send, interrupt, approve, deny, answer,\n  } = useAgentSession({ baseUrl: \"http://localhost:8000\", token: \"...\" });\n\n  return (\n    <div>\n      {messages.map((m) => <Bubble key={m.id} m={m} />)}\n      {pendingPermission && (\n        <PermissionPrompt\n          req={pendingPermission}\n          onAllow={() => approve(pendingPermission.correlation_id)}\n          onDeny={() => deny(pendingPermission.correlation_id)}\n        />\n      )}\n      {pendingQuestion && (\n        <QuestionPrompt\n          q={pendingQuestion}\n          onAnswer={(answers) => answer(pendingQuestion.correlation_id, answers)}\n        />\n      )}\n    </div>\n  );\n}\n```\n\nThe hook handles delta→complete reconciliation by `message_id`, race-resolution UI states,\nand reconnect with `Last-Event-ID`.\n","readmeFilename":"README.md","_rev":"1-b6b81ea18b10ccb3d594abb6b2aa1c3f"}