{"_id":"@agent-cdp/sdk","_rev":"3-cc12688f7ca4ab7ba0cbe2cdbbf63e96","name":"@agent-cdp/sdk","dist-tags":{"latest":"1.6.1"},"versions":{"1.5.0":{"name":"@agent-cdp/sdk","version":"1.5.0","_id":"@agent-cdp/sdk@1.5.0","maintainers":[{"name":"aitwar","email":"szymonchmal@gmail.com"}],"dist":{"shasum":"a90492605c49adad089f274a8835bc295b8f0be8","tarball":"https://registry.npmjs.org/@agent-cdp/sdk/-/sdk-1.5.0.tgz","fileCount":6,"integrity":"sha512-e+FnvhbjrB4ka8DJo7wJz1X8cHvRHJpUXszBSNd/CuU/bkMtiSUM+rCymoZYCBCmBNWASoW2HoTrjzttwJWfYA==","signatures":[{"sig":"MEQCIEkReEC+P7bC+jXHD4u1T0Bgmzj4m2/6oCp/PF5hycK3AiB5SzncvOtwqsiU7wqxrvQZrLGWCWNn8gjml8J8/iPuSg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27102},"type":"module","_from":"file:agent-cdp-sdk-1.5.0.tgz","types":"./src/index.ts","exports":{".":{"types":"./src/index.ts","import":"./dist/index.js","react-native":"./src/index.ts"}},"scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"aitwar","email":"szymonchmal@gmail.com"},"_resolved":"/private/var/folders/tb/j39z273s5kn7lb9tz1dhk8l00000gn/T/2e9cdead5988036a92adf29d8ed49489/agent-cdp-sdk-1.5.0.tgz","_integrity":"sha512-e+FnvhbjrB4ka8DJo7wJz1X8cHvRHJpUXszBSNd/CuU/bkMtiSUM+rCymoZYCBCmBNWASoW2HoTrjzttwJWfYA==","_npmVersion":"11.9.0","description":"Programmatic SDK for agent-cdp runtime integrations.","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@agent-cdp/protocol":"1.5.0"},"react-native":"./src/index.ts","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","vitest":"^3.1.4","typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/sdk_1.5.0_1778845722206_0.3255706054019505","host":"s3://npm-registry-packages-npm-production"}},"1.5.1":{"name":"@agent-cdp/sdk","version":"1.5.1","_id":"@agent-cdp/sdk@1.5.1","maintainers":[{"name":"aitwar","email":"szymonchmal@gmail.com"}],"dist":{"shasum":"182f6ba42d0cbd170f5fc1190c1e070324cf4b8b","tarball":"https://registry.npmjs.org/@agent-cdp/sdk/-/sdk-1.5.1.tgz","fileCount":6,"integrity":"sha512-2yXrMdEZtCUdz+kZuNAUxG/H7Dn+3P1E2QPfbMMcPUDyLJ2+I7JVfCrs2Xe8RQV3hg/8ACeHgTxub4OK3FoJOA==","signatures":[{"sig":"MEYCIQD+P5SxapEfB7FMYIWgUP41XBwpStyIk66nmort/WnlTgIhAPXSrYCqxE5kPQRqk6Ut06UaL59FpicXlY6vzF9DBG+0","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27926},"type":"module","_from":"file:agent-cdp-sdk-1.5.1.tgz","types":"./src/index.ts","exports":{".":{"types":"./src/index.ts","import":"./dist/index.js","react-native":"./src/index.ts"}},"scripts":{"test":"vitest run","build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"aitwar","email":"szymonchmal@gmail.com"},"_resolved":"/private/var/folders/tb/j39z273s5kn7lb9tz1dhk8l00000gn/T/903c1563346e4cbf79e32a1f6e9fef26/agent-cdp-sdk-1.5.1.tgz","_integrity":"sha512-2yXrMdEZtCUdz+kZuNAUxG/H7Dn+3P1E2QPfbMMcPUDyLJ2+I7JVfCrs2Xe8RQV3hg/8ACeHgTxub4OK3FoJOA==","_npmVersion":"11.9.0","description":"Programmatic SDK for agent-cdp runtime integrations.","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@agent-cdp/protocol":"1.5.1"},"react-native":"./src/index.ts","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","vitest":"^3.1.4","typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/sdk_1.5.1_1778850058496_0.994194866118921","host":"s3://npm-registry-packages-npm-production"}},"1.6.1":{"name":"@agent-cdp/sdk","version":"1.6.1","description":"Programmatic SDK for agent-cdp runtime integrations.","type":"module","repository":{"type":"git","url":"git+https://github.com/callstackincubator/agent-cdp.git","directory":"packages/sdk"},"bugs":{"url":"https://github.com/callstackincubator/agent-cdp/issues"},"homepage":"https://github.com/callstackincubator/agent-cdp/tree/master/packages/sdk#readme","license":"MIT","types":"./src/index.ts","react-native":"./src/index.ts","exports":{".":{"types":"./src/index.ts","react-native":"./src/index.ts","import":"./dist/index.js"}},"dependencies":{"@agent-cdp/protocol":"1.6.1"},"devDependencies":{"tsup":"^8.5.0","typescript":"^5.8.3","vitest":"^3.1.4"},"scripts":{"build":"tsup","test":"vitest run","typecheck":"tsc --noEmit"},"_id":"@agent-cdp/sdk@1.6.1","_integrity":"sha512-Q0uxqOJj83dHXD34a4M8WZfygAHBOelup8VAo2O21MF95JUFSRAigUv7nnxGfGZL9dH02y8Q1aPHCxBUytSi3A==","_resolved":"/home/runner/work/_temp/packs/agent-cdp-sdk-1.6.1.tgz","_from":"file:/home/runner/work/_temp/packs/agent-cdp-sdk-1.6.1.tgz","_nodeVersion":"24.17.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-Q0uxqOJj83dHXD34a4M8WZfygAHBOelup8VAo2O21MF95JUFSRAigUv7nnxGfGZL9dH02y8Q1aPHCxBUytSi3A==","shasum":"f267ccf0e5d3b2ac4d657326d7eebf30cdf83533","tarball":"https://registry.npmjs.org/@agent-cdp/sdk/-/sdk-1.6.1.tgz","fileCount":6,"unpackedSize":28272,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agent-cdp%2fsdk@1.6.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCID00BbGfVCwxT9yyvBVPiGAIXPa8eg14R1PpY8s2dMNPAiBw1Kp555VI0GBu8L8kfEpvISj9yZY8TBxYjG7eviJffg=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f1766b6b-d9cc-446e-8f91-bb7fe65ff73c"}},"directories":{},"maintainers":[{"name":"aitwar","email":"szymonchmal@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_1.6.1_1782904612383_0.7153356479603792"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-15T11:48:42.135Z","modified":"2026-07-01T11:16:52.892Z","1.5.0":"2026-05-15T11:48:42.402Z","1.5.1":"2026-05-15T13:00:58.634Z","1.6.1":"2026-07-01T11:16:52.533Z"},"description":"Programmatic SDK for agent-cdp runtime integrations.","maintainers":[{"name":"aitwar","email":"szymonchmal@gmail.com"}],"readme":"# @agent-cdp/sdk\n\n`@agent-cdp/sdk` is the app-side runtime bridge for `agent-cdp`. It lets running application code trigger a focused subset of daemon-backed inspection and profiling actions from inside the target app.\n\n## Install\n\n```sh\nnpm install @agent-cdp/sdk\n```\n\nFor workspace development from this repository:\n\n```sh\npnpm install\npnpm run build\n```\n\n## Setup\n\n1. Start the daemon with `agent-cdp start`.\n2. Select the running app target with `agent-cdp target list` and `agent-cdp target select <target-id>`.\n3. Call the SDK from app code after the bridge is injected into the selected runtime.\n\nIf no target is selected, SDK calls reject because the runtime bridge is not installed.\n\n## Usage\n\n```ts\nimport { cpuProfile } from \"@agent-cdp/sdk\";\n\nexport async function runProfiledAction() {\n  await cpuProfile.start({ name: \"checkout-submit\" });\n\n  try {\n    await submitCheckout();\n    await flushPostSubmitWork();\n  } finally {\n    const sessionId = await cpuProfile.stop();\n    console.log(\"agent-cdp CPU profile session\", sessionId);\n  }\n}\n```\n\n## Available modules\n\n- `cpuProfile`: `start`, `status`, `stop`\n- `allocation`: `start`, `status`, `stop`\n- `allocationTimeline`: `start`, `status`, `stop`\n- `memoryUsage`: `sample`\n- `memorySnapshot`: `capture`\n- `network`: `start`, `status`, `stop`\n- `trace`: `start`, `status`, `stop`\n- `AgentRuntimeClient`: direct client when you need custom timeout or binding names\n","readmeFilename":"README.md","homepage":"https://github.com/callstackincubator/agent-cdp/tree/master/packages/sdk#readme","repository":{"type":"git","url":"git+https://github.com/callstackincubator/agent-cdp.git","directory":"packages/sdk"},"bugs":{"url":"https://github.com/callstackincubator/agent-cdp/issues"},"license":"MIT"}