{"_id":"@agent-dashboard/adapter-claude-code","_rev":"5-8342a8d2a6cbc52a4a006f483e30e426","name":"@agent-dashboard/adapter-claude-code","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.0":{"name":"@agent-dashboard/adapter-claude-code","version":"0.1.0","_id":"@agent-dashboard/adapter-claude-code@0.1.0","maintainers":[{"name":"anishgarg019","email":"anishgarg019@gmail.com"}],"dist":{"shasum":"8b40a28db4e21047e77861d8b5ee0aef6dbf1e53","tarball":"https://registry.npmjs.org/@agent-dashboard/adapter-claude-code/-/adapter-claude-code-0.1.0.tgz","fileCount":5,"integrity":"sha512-1IfE6f+WlwGjIEjhwlgV3aGD6H29m2CNUeQQrTOl79SsDUwIghRhZnFbQP7R10O7phSl0T15Hrnf1dVplCaK4Q==","signatures":[{"sig":"MEUCIFrB9/ds7ysyAEZzBdwQTnbVBKtNB0sQEz0RQav0R7yjAiEA9W3fvdZFwpcHsbPAdiHBl8dqszKC9HwYQXtlrzdtCHk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":108306},"main":"./dist/index.js","type":"module","_from":"file:agent-dashboard-adapter-claude-code-0.1.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","lint":"eslint src","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"anishgarg019","email":"anishgarg019@gmail.com"},"_resolved":"/tmp/96952a4318fa1db6c2100dcae824d945/agent-dashboard-adapter-claude-code-0.1.0.tgz","_integrity":"sha512-1IfE6f+WlwGjIEjhwlgV3aGD6H29m2CNUeQQrTOl79SsDUwIghRhZnFbQP7R10O7phSl0T15Hrnf1dVplCaK4Q==","_npmVersion":"10.8.2","description":"The first-party adapter that lets the Agent Dashboard spawn and observe Claude Code agents.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@agent-dashboard/core":"0.1.0","@agent-dashboard/protocol":"0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/adapter-claude-code_0.1.0_1777814962483_0.06840842231044286","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@agent-dashboard/adapter-claude-code","version":"0.1.1","_id":"@agent-dashboard/adapter-claude-code@0.1.1","maintainers":[{"name":"anishgarg019","email":"anishgarg019@gmail.com"}],"dist":{"shasum":"702d13f316fba380c17c8ee7753608e641f48b9b","tarball":"https://registry.npmjs.org/@agent-dashboard/adapter-claude-code/-/adapter-claude-code-0.1.1.tgz","fileCount":5,"integrity":"sha512-LbgrcwG0TgFgN3PFrC+3C8+jqiIsXuGW7O1Pp7d3Wgew8RvYWEfbvvBmRgdeU5FZjmphxOq0aALh2g/bUchWgQ==","signatures":[{"sig":"MEUCICIx80o0Vjx8ktsJ8cSNp7Z531mKrCTvE8YM8BydL4B/AiEAlKb3xGeESCOXtlDJvHUJG35cX+6Q3MZVJFN5kyJ4jKo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":108306},"main":"./dist/index.js","type":"module","_from":"file:agent-dashboard-adapter-claude-code-0.1.1.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","lint":"eslint src","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"anishgarg019","email":"anishgarg019@gmail.com"},"_resolved":"/tmp/c22e318e2731d824f77e0ca252538212/agent-dashboard-adapter-claude-code-0.1.1.tgz","_integrity":"sha512-LbgrcwG0TgFgN3PFrC+3C8+jqiIsXuGW7O1Pp7d3Wgew8RvYWEfbvvBmRgdeU5FZjmphxOq0aALh2g/bUchWgQ==","_npmVersion":"10.8.2","description":"The first-party adapter that lets the Agent Dashboard spawn and observe Claude Code agents.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@agent-dashboard/core":"0.1.1","@agent-dashboard/protocol":"0.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/adapter-claude-code_0.1.1_1777815301190_0.4217603046324758","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@agent-dashboard/adapter-claude-code","version":"0.1.2","_id":"@agent-dashboard/adapter-claude-code@0.1.2","maintainers":[{"name":"anishgarg019","email":"anishgarg019@gmail.com"}],"dist":{"shasum":"d54162279bf40bd79e3fe80a55251091f066c233","tarball":"https://registry.npmjs.org/@agent-dashboard/adapter-claude-code/-/adapter-claude-code-0.1.2.tgz","fileCount":5,"integrity":"sha512-+p1WfysyTGhtIobSLls+1wLti7pexZb2/T+MVVqRDHHdRh1m0E9pJU7HjdfTp/nkFnsNmHuBOdgMp2UuOoqB6A==","signatures":[{"sig":"MEUCIQD2wpzkFNIW2SVaoUX/3hZxnCIhGO2pW7H+69RNBRtAYAIgGmL0cEFc1B2YY4g5srL6HH1/hPWRdHVg+3g1OTouMgw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":108306},"main":"./dist/index.js","type":"module","_from":"file:agent-dashboard-adapter-claude-code-0.1.2.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","lint":"eslint src","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"anishgarg019","email":"anishgarg019@gmail.com"},"_resolved":"/tmp/6d0717ee9cbbada78b6b6fd07d49606f/agent-dashboard-adapter-claude-code-0.1.2.tgz","_integrity":"sha512-+p1WfysyTGhtIobSLls+1wLti7pexZb2/T+MVVqRDHHdRh1m0E9pJU7HjdfTp/nkFnsNmHuBOdgMp2UuOoqB6A==","_npmVersion":"10.8.2","description":"The first-party adapter that lets the Agent Dashboard spawn and observe Claude Code agents.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@agent-dashboard/core":"0.1.2","@agent-dashboard/protocol":"0.1.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/adapter-claude-code_0.1.2_1777815569582_0.8023762650304986","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@agent-dashboard/adapter-claude-code","version":"0.1.3","_id":"@agent-dashboard/adapter-claude-code@0.1.3","maintainers":[{"name":"anishgarg019","email":"anishgarg019@gmail.com"}],"dist":{"shasum":"528a9e498ff1a1085892e7eeada09184bd430c42","tarball":"https://registry.npmjs.org/@agent-dashboard/adapter-claude-code/-/adapter-claude-code-0.1.3.tgz","fileCount":5,"integrity":"sha512-sol/CAZdAtnOCgspgc8FEzEOxoy+3UAluZLOHSYq5J15lgyvrFDeKiFzK8/IIPLSFk92I8V7bPSJorSGGm26Bw==","signatures":[{"sig":"MEYCIQCgk1C1FVAqM0nz6TJPuufrSmWJlpdFRE0Mp3CcmoojagIhAIKmbPS+28Tog0k3WuupkPJ2nZP6X6tsNcYZASD1Bmnn","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":108306},"main":"./dist/index.js","type":"module","_from":"file:agent-dashboard-adapter-claude-code-0.1.3.tgz","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","lint":"eslint src","test":"vitest run","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"anishgarg019","email":"anishgarg019@gmail.com"},"_resolved":"/tmp/6ecceffb815e6a7975296909f56d71e3/agent-dashboard-adapter-claude-code-0.1.3.tgz","_integrity":"sha512-sol/CAZdAtnOCgspgc8FEzEOxoy+3UAluZLOHSYq5J15lgyvrFDeKiFzK8/IIPLSFk92I8V7bPSJorSGGm26Bw==","_npmVersion":"10.8.2","description":"The first-party adapter that lets the Agent Dashboard spawn and observe Claude Code agents.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@agent-dashboard/core":"0.1.3","@agent-dashboard/protocol":"0.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/adapter-claude-code_0.1.3_1777815801870_0.2297335332342325","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@agent-dashboard/adapter-claude-code","version":"0.1.4","type":"module","engines":{"node":">=20 <24"},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"publishConfig":{"access":"public"},"dependencies":{"@agent-dashboard/protocol":"0.1.4","@agent-dashboard/core":"0.1.4"},"scripts":{"build":"tsup","dev":"tsup --watch","typecheck":"tsc --noEmit","lint":"eslint src","test":"vitest run"},"_id":"@agent-dashboard/adapter-claude-code@0.1.4","description":"The first-party adapter that lets the Agent Dashboard spawn and observe Claude Code agents.","_integrity":"sha512-5FPYeRiaQjL7cH48/Kh+RhDeswMSis+jkBEu4ySupIbDvJ977ICBpFpvVo2AaowFs2BN46/8mEBn/JZLZ8Qf+g==","_resolved":"/tmp/312789e2a9f83a3c1b75052ba7b13f05/agent-dashboard-adapter-claude-code-0.1.4.tgz","_from":"file:agent-dashboard-adapter-claude-code-0.1.4.tgz","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-5FPYeRiaQjL7cH48/Kh+RhDeswMSis+jkBEu4ySupIbDvJ977ICBpFpvVo2AaowFs2BN46/8mEBn/JZLZ8Qf+g==","shasum":"471da2252a4c0a3b34dd362089b7a127e128d858","tarball":"https://registry.npmjs.org/@agent-dashboard/adapter-claude-code/-/adapter-claude-code-0.1.4.tgz","fileCount":5,"unpackedSize":110580,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBqW/sNGPsAFVI8S+J8EFnGfemBZ+F5SiDvItfzsIOmuAiBr+qOinCUyxjNtr7kVqcQchtLIGqRKT6bu6k4meXNiFg=="}]},"_npmUser":{"name":"anishgarg019","email":"anishgarg019@gmail.com"},"directories":{},"maintainers":[{"name":"anishgarg019","email":"anishgarg019@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/adapter-claude-code_0.1.4_1779187045790_0.7282362328502785"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-03T13:29:22.426Z","modified":"2026-05-19T10:37:26.046Z","0.1.0":"2026-05-03T13:29:22.619Z","0.1.1":"2026-05-03T13:35:01.400Z","0.1.2":"2026-05-03T13:39:29.723Z","0.1.3":"2026-05-03T13:43:22.005Z","0.1.4":"2026-05-19T10:37:25.935Z"},"description":"The first-party adapter that lets the Agent Dashboard spawn and observe Claude Code agents.","maintainers":[{"name":"anishgarg019","email":"anishgarg019@gmail.com"}],"readme":"# @agent-dashboard/adapter-claude-code\n\nThe first-party adapter that lets the Agent Dashboard spawn and observe\nClaude Code agents.\n\n## Usage\n\n```ts\nimport { claudeCodeAdapter } from '@agent-dashboard/adapter-claude-code';\n\nclaudeCodeAdapter.on('agent.tool_called', (p) => console.log(p.tool, p.arg));\n\nconst handle = await claudeCodeAdapter.startTask({\n  agentId: 'agent-1',\n  storyId: '1.1',\n  story: { /* parsed BMAD story */ },\n  workspaceDir: process.cwd(),\n});\n```\n\nThe adapter requires `claude` on `PATH`. The orchestrator (Story 4.3+)\nconstructs an instance via `createClaudeCodeAdapter({ command, args })`\nwhen it needs to point at a different binary.\n\n## Overriding the binary (tests)\n\nPass `command` to `createClaudeCodeAdapter` to point at any executable\nthat consumes the prompt over stdin and emits Claude-style stdout lines.\nThe bundled test fixture at `tests/fixtures/fake-claude.mjs` is the\nreference implementation used by the adapter's own test suite.\n\n```ts\nimport { createClaudeCodeAdapter } from '@agent-dashboard/adapter-claude-code';\n\nconst adapter = createClaudeCodeAdapter({\n  command: process.execPath,\n  args: ['./tests/fixtures/fake-claude.mjs'],\n});\n```\n\n## Forking as a template\n\nThe adapter is intentionally small (≤300 lines under `src/`). Use it\nas the starting point for adapters targeting Cursor, Aider, Codex, or\nany other agent runtime:\n\n1. Copy this package and rename it.\n2. Replace `parseClaudeLine` with the heuristic for your runtime's\n   stdout format.\n3. Replace `buildPrompt` with the prompt template your runtime expects.\n4. Update `runtime` and `command` defaults.\n5. The shape of `claudeCodeAdapter`, the lifecycle (start → events →\n   completed/crashed/killed), and the cross-platform spawn/kill helper\n   in `@agent-dashboard/core` are all reusable as-is.\n\nSee [`@agent-dashboard/protocol`](../protocol/README.md) for the\ncontract every adapter implements.\n","readmeFilename":"README.md"}