{"_id":"@ai-memory/telepathine-client","name":"@ai-memory/telepathine-client","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@ai-memory/telepathine-client","version":"0.1.0","type":"module","license":"Apache-2.0","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"},"./identity-store":{"import":"./dist/identity-store.js","types":"./dist/identity-store.d.ts"}},"scripts":{"build":"tsc -p tsconfig.json","dev":"tsc -p tsconfig.json --watch","test":"vitest run","typecheck":"tsc -p tsconfig.json --noEmit","clean":"rm -rf dist"},"dependencies":{"@ai-memory/shared-utils":"^0.1.2","ws":"^8.21.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"devDependencies":{"@types/node":"^20.17.6","@types/ws":"^8.18.1","vitest":"^2.1.9"},"gitHead":"d89639551dd88bae2ca5caafd15163b0f0ccabe7","_id":"@ai-memory/telepathine-client@0.1.0","description":"SSE/WebSocket client library for the Telepathine bus — the agent-to-agent communication protocol.","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-6xsM0zCwBuOj/4t//mx/FMw6KblfGALhk6ssDK9wRTJqxjx1GoCLq0aYvESfH4wNcFkupLPjjQT2dUECY2A85A==","shasum":"11ed493dfa86bc448e47eab052584745c3c152f7","tarball":"https://registry.npmjs.org/@ai-memory/telepathine-client/-/telepathine-client-0.1.0.tgz","fileCount":30,"unpackedSize":124720,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGjvFwRE9kNW56Ao7RQeFTrZeSSJTbNt3NBDMgX3I5NAAiAvF0j1oJFmNB2o4ZM2u/5NZVvKa4UsXOd1wwpRS/29JQ=="}]},"_npmUser":{"name":"artemisai-dev","email":"daniel@artemis-ai.ca"},"directories":{},"maintainers":[{"name":"artemisai-dev","email":"daniel@artemis-ai.ca"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/telepathine-client_0.1.0_1780345173076_0.17533990276728684"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-01T20:19:32.947Z","0.1.0":"2026-06-01T20:19:33.217Z","modified":"2026-06-01T20:19:33.386Z"},"maintainers":[{"name":"artemisai-dev","email":"daniel@artemis-ai.ca"}],"description":"SSE/WebSocket client library for the Telepathine bus — the agent-to-agent communication protocol.","license":"Apache-2.0","readme":"# @ai-memory/telepathine-client\n\nSSE/WebSocket client library for the Telepathine bus — the agent-to-agent communication protocol.\n\n## Install\n\n```bash\nnpm install @ai-memory/telepathine-client\n```\n\n## Usage\n\n### Full WebSocket Agent\n\n```typescript\nimport { TelepathClient } from \"@ai-memory/telepathine-client\";\n\nconst client = new TelepathClient({\n  agentName: \"my-agent\",\n  busUrl: \"http://localhost:37779\",\n});\n\nclient.onMessage((thought) => {\n  console.log(`Received from ${thought.sender}: ${thought.message}`);\n});\n```\n\n### Polling-Based Controller (for non-SSE engines)\n\n```typescript\nimport { TelepathControllerLite } from \"@ai-memory/telepathine-client\";\n\nconst controller = new TelepathControllerLite({\n  agentName: \"my-agent\",\n  busUrl: \"http://localhost:37779\",\n});\n\nawait controller.connect();\n```\n\n### Persist & Restore Identity\n\n```typescript\nimport { loadIdentity, saveIdentity, clearIdentity } from \"@ai-memory/telepathine-client/identity-store\";\n\nconst identity = loadIdentity(\"my-project\");\nif (!identity) {\n  // First run — create new identity\n  console.log(\"No existing identity found\");\n} else {\n  console.log(`Restored identity: ${identity.agentName}`);\n}\n\n// Save identity after agent spawns\nsaveIdentity(\"my-project\", { agentName: \"my-agent-123\" });\n\n// Clean up on deactivation\nclearIdentity(\"my-project\");\n```\n\n### Cognitive Event Helpers\n\n```typescript\nimport { createDecisionEvent, classifyThought } from \"@ai-memory/telepathine-client\";\n```\n\n## Requirements\n\n- Node.js 18+ (global `fetch()` and `AbortSignal.timeout()`)\n- A running Telepathine bus instance\n\n## License\n\nApache-2.0\n","readmeFilename":"README.md","_rev":"1-dfcb0a67936ad116b2e2b91487ef2836"}