{"_id":"@agent-wasm/code","name":"@agent-wasm/code","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@agent-wasm/code","version":"0.1.0","description":"Claude Code transcript parsing and browser IDE bridge helpers 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"}},"dependencies":{"@agent-wasm/chat-core":"0.1.0"},"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 --external @agent-wasm/chat-core","test":"vitest run --passWithNoTests","type-check":"tsc --project tsconfig.json --noEmit"},"_id":"@agent-wasm/code@0.1.0","bugs":{"url":"https://github.com/BLamy/agent-wasm/issues"},"homepage":"https://github.com/BLamy/agent-wasm#readme","_integrity":"sha512-4eM2C9VRph4xaFtrcqNkXlIZdP+VndJIbYTWcczY03TxYxdjBvbxVSGCuf8kc/guPsVxogDkjWkh+d3jRGi3eA==","_resolved":"/private/var/folders/xj/jvddkcmd6y9_f79xzk2z_rd00000gn/T/2476498b1a4e8a27574489fe1ed9cde4/agent-wasm-code-0.1.0.tgz","_from":"file:agent-wasm-code-0.1.0.tgz","_nodeVersion":"23.11.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-4eM2C9VRph4xaFtrcqNkXlIZdP+VndJIbYTWcczY03TxYxdjBvbxVSGCuf8kc/guPsVxogDkjWkh+d3jRGi3eA==","shasum":"ab9b0eb0ce9dd2ac010f51f0d14833fdb5a09657","tarball":"https://registry.npmjs.org/@agent-wasm/code/-/code-0.1.0.tgz","fileCount":7,"unpackedSize":79780,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCQ2XUL1ULpxjd+MlQ9S1utpzmOT1fVhWZvtetW5zYj5QIgTlB6xL30akPD89r8do0ZBBqjDSbli2HsoDmYxutTuTI="}]},"_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/code_0.1.0_1784961623732_0.4508187625911586"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-25T06:40:23.543Z","0.1.0":"2026-07-25T06:40:23.868Z","modified":"2026-07-25T06:40:24.105Z"},"maintainers":[{"name":"bel423","email":"bel423@gmail.com"}],"description":"Claude Code transcript parsing and browser IDE bridge helpers 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/code\n\nClaude Code agent integration for agent-wasm: an incremental JSONL transcript\nparser and a synced conversation adapter over\n[`@agent-wasm/chat-core`](https://www.npmjs.com/package/@agent-wasm/chat-core).\n\n```bash\nnpm install @agent-wasm/code @agent-wasm/chat-core\n```\n\n## API\n\n- **`ClaudeTranscriptTail`** — tail a Claude Code project transcript (`.jsonl`),\n  emitting `ChatMessage`s as the agent writes its own record.\n- **`ClaudeConversationAdapter`** — a `ConversationAdapter` that surfaces a live,\n  bidirectional view of a running Claude Code session in the chat UI.\n- **`claudeToolUseToToolCall`** (re-exported from chat-core) — map Claude\n  `tool_use` blocks to renderable tool-call cards with diffs.\n- **`CLAUDE_PROJECTS_ROOT` / `extractClaudeMessageText`** — transcript path + content\n  helpers.\n\n## Scope\n\nThis package ships the browser-runnable, encoding-only Claude pieces. The\nMCP-over-SSE IDE bridge that streams Monaco editor selection/diagnostics back to\nthe CLI lives behind an injected `EditorStateProvider` — its reusable server half\nships here as `ClaudeIdeVirtualServer` + `buildClaudeIdeMcpConfig`, while the\neditor-state reads stay in the host (the web IDE).\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-b1db07a95a89f1879c4ba203abb56a11"}