{"_id":"@actwith-ai/sdk","_rev":"7-85f915ca7a74ef08efff93695d8813d7","name":"@actwith-ai/sdk","dist-tags":{"latest":"0.5.0"},"versions":{"0.1.0":{"name":"@actwith-ai/sdk","version":"0.1.0","keywords":["actwith","agents","ai","memory","reasoning","cognition"],"author":"","license":"MIT","_id":"@actwith-ai/sdk@0.1.0","maintainers":[{"name":"actwith","email":"scott@troopweller.com"}],"dist":{"shasum":"cbcb69fce7b33f47672e222feae3fc68ba36ddf7","tarball":"https://registry.npmjs.org/@actwith-ai/sdk/-/sdk-0.1.0.tgz","fileCount":6,"integrity":"sha512-tMHfpZsVgFpZmZfwqB/PhxnT20PVDD3ar7z29hKl6dvGQBwg2lF89O2YrLYLrhgT3JD2gd4nzNkEKHGF+HeRSw==","signatures":[{"sig":"MEYCIQDf7eHye1ByIXkWhMTyG/2/To6Z/irjWgH/yDyi8ksg9AIhALox2dWPGMEg57dr73FKyYm37r5/GxQp7o8V7pVlSX+Q","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34105},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"2d0069e4e80d884493d3c6b8860d1785f96eefcc","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","typecheck":"tsc --noEmit"},"_npmUser":{"name":"actwith","email":"scott@troopweller.com"},"_npmVersion":"10.9.2","description":"Official SDK for Actwith - Structured Memory & Reasoning for Agents","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^1.0.0","typescript":"^5.0.0"},"peerDependencies":{"typescript":">=4.7.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.0_1770563743590_0.5682964457541817","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@actwith-ai/sdk","version":"0.2.0","keywords":["actwith","agents","ai","memory","multi-agent","coordination","mcp"],"author":{"name":"Actwith Team"},"license":"MIT","_id":"@actwith-ai/sdk@0.2.0","maintainers":[{"name":"actwith","email":"scott@troopweller.com"}],"homepage":"https://github.com/actwith-ai/actwith/tree/main/packages/sdk#readme","bugs":{"url":"https://github.com/actwith-ai/actwith/issues"},"dist":{"shasum":"4f16ca5be92d6c2e04893d768c4fff1064ff15b3","tarball":"https://registry.npmjs.org/@actwith-ai/sdk/-/sdk-0.2.0.tgz","fileCount":6,"integrity":"sha512-L1lSzj0Gfn51IPe77DAN11R28KjgXlu2YPBqN63TnYzCDq+dw6noN5ZD4zV/k+3FeTVOBi2f0pwoNu75ITy5sw==","signatures":[{"sig":"MEQCIGMP7Fl99z/8Ry/V3PCLIIkwXg9VYflVzx+GUtRiuBjFAiBzdjrmDHuyFl+LLfnZx6eFUXDTmh/ehD1CTvkLAi/51Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":108231},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"e48bec5e7da26ac1fed741673a9ce8c512cc09c7","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","typecheck":"tsc --noEmit","prepublishOnly":"pnpm build"},"_npmUser":{"name":"actwith","email":"scott@troopweller.com"},"repository":{"url":"git+https://github.com/actwith-ai/actwith.git","type":"git","directory":"packages/sdk"},"_npmVersion":"10.9.2","description":"Official SDK for Actwith - persistent memory and multi-agent coordination for AI agents","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^1.0.0","typescript":"^5.0.0"},"peerDependencies":{"typescript":">=4.7.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.0_1770671877328_0.5429546842952182","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@actwith-ai/sdk","version":"0.2.1","keywords":["actwith","agents","ai","memory","multi-agent","coordination","mcp"],"author":{"name":"Actwith Team"},"license":"MIT","_id":"@actwith-ai/sdk@0.2.1","maintainers":[{"name":"actwith","email":"scott@troopweller.com"}],"homepage":"https://github.com/actwith-ai/actwith/tree/main/packages/sdk#readme","bugs":{"url":"https://github.com/actwith-ai/actwith/issues"},"dist":{"shasum":"46b3cd3296b432f0e9bca0cbbc5597606185dc50","tarball":"https://registry.npmjs.org/@actwith-ai/sdk/-/sdk-0.2.1.tgz","fileCount":6,"integrity":"sha512-giTXNZLxXJC672C/0GK4tdrvDVtwMgIVqodKUHxBrv9sCV8p3gdwQyjEeiBr4RwoYfHvlDYivCJoJ3TXytxKXQ==","signatures":[{"sig":"MEYCIQC5vBIZahtVrJbKtsoMMy1/esSkjQKGrzZ7EOqcfn+bnQIhAO3/WqwwuAeZU3gZH0gV34Ts1xGZ+KO6wtrjHKXGATGW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":108231},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"e48bec5e7da26ac1fed741673a9ce8c512cc09c7","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","typecheck":"tsc --noEmit","prepublishOnly":"pnpm build"},"_npmUser":{"name":"actwith","email":"scott@troopweller.com"},"repository":{"url":"git+https://github.com/actwith-ai/actwith.git","type":"git","directory":"packages/sdk"},"_npmVersion":"10.9.2","description":"Official SDK for Actwith - persistent memory and multi-agent coordination for AI agents","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^1.0.0","typescript":"^5.0.0"},"peerDependencies":{"typescript":">=4.7.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.1_1770672380644_0.7939453224484783","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@actwith-ai/sdk","version":"0.3.0","keywords":["actwith","agents","ai","memory","multi-agent","coordination","mcp"],"author":{"name":"Actwith Team"},"license":"MIT","_id":"@actwith-ai/sdk@0.3.0","maintainers":[{"name":"actwith","email":"scott@troopweller.com"}],"homepage":"https://github.com/actwith-ai/actwith/tree/main/packages/sdk#readme","bugs":{"url":"https://github.com/actwith-ai/actwith/issues"},"dist":{"shasum":"d53c03c94ee9f33ddec49238b323ed087767f82e","tarball":"https://registry.npmjs.org/@actwith-ai/sdk/-/sdk-0.3.0.tgz","fileCount":6,"integrity":"sha512-bPyifksbk5nNT+wAldYsZfnQ9Y1aEvw2R5eJEm4EG2mUQ0xVoTUEvRIEzEA2J9WkBup6+2aepjJ6usJIf88vOw==","signatures":[{"sig":"MEUCIQCNt5+3eMVgXxPr5Rgak7iBdaTBmKBo7WYGAtVND/hBWwIgNbh8L79BF2NwkfAbRhpyIV1QZKfgHtSK4RQ1HFlYtUg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":108231},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"e48bec5e7da26ac1fed741673a9ce8c512cc09c7","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","typecheck":"tsc --noEmit","prepublishOnly":"pnpm build"},"_npmUser":{"name":"actwith","email":"scott@troopweller.com"},"repository":{"url":"git+https://github.com/actwith-ai/actwith.git","type":"git","directory":"packages/sdk"},"_npmVersion":"10.9.2","description":"Official SDK for Actwith - persistent memory and multi-agent coordination for AI agents","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^1.0.0","typescript":"^5.0.0"},"peerDependencies":{"typescript":">=4.7.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.3.0_1770674468500_0.24234714456992923","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@actwith-ai/sdk","version":"0.3.1","keywords":["actwith","agents","ai","memory","multi-agent","coordination","mcp"],"author":{"name":"Actwith Team"},"license":"MIT","_id":"@actwith-ai/sdk@0.3.1","maintainers":[{"name":"actwith","email":"scott@troopweller.com"}],"homepage":"https://github.com/actwith-ai/actwith/tree/main/packages/sdk#readme","bugs":{"url":"https://github.com/actwith-ai/actwith/issues"},"dist":{"shasum":"7671853f5bf24bf657511ff49c69d1db169a14f9","tarball":"https://registry.npmjs.org/@actwith-ai/sdk/-/sdk-0.3.1.tgz","fileCount":6,"integrity":"sha512-jtP2iJdw9Ea3eQWeYgsQXAYcw7vtq82L5eKrbwtDvD1qQnP7sL5aFjNV32/5BLmCXOhUwIWaBGcj7qxzgZ3PaQ==","signatures":[{"sig":"MEQCIGqXiztZLUOa8pnPjSAoLvTE4RJ2VyazQKoIT2o1UrTvAiA6qaPMOxAmMd1f3hlvahXPwzU7ZzRJcs8Wj41vOhGXBQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":108567},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"e48bec5e7da26ac1fed741673a9ce8c512cc09c7","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","typecheck":"tsc --noEmit","prepublishOnly":"pnpm build"},"_npmUser":{"name":"actwith","email":"scott@troopweller.com"},"repository":{"url":"git+https://github.com/actwith-ai/actwith.git","type":"git","directory":"packages/sdk"},"_npmVersion":"10.9.2","description":"Official SDK for Actwith - persistent memory and multi-agent coordination for AI agents","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^1.0.0","typescript":"^5.0.0"},"peerDependencies":{"typescript":">=4.7.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.3.1_1770681995312_0.1377929126132953","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@actwith-ai/sdk","version":"0.3.2","keywords":["actwith","agents","ai","memory","multi-agent","coordination","mcp"],"author":{"name":"Actwith Team"},"license":"MIT","_id":"@actwith-ai/sdk@0.3.2","maintainers":[{"name":"actwith","email":"scott@troopweller.com"}],"homepage":"https://github.com/actwith-ai/actwith/tree/main/packages/sdk#readme","bugs":{"url":"https://github.com/actwith-ai/actwith/issues"},"dist":{"shasum":"6a0c2b24c74b0b714212aba0ad810185c77de948","tarball":"https://registry.npmjs.org/@actwith-ai/sdk/-/sdk-0.3.2.tgz","fileCount":6,"integrity":"sha512-9ZL/WSwBloXP4PQe9ztUlHNZGT2JY5vlmOSjGl4tDxtu48vni6SMUbRH8jwGtOgmVUCMWrubdjfCDLUL9C2Tsg==","signatures":[{"sig":"MEYCIQDrUsydL0R0l/VymWcGantSwZu5lyfHYbb0tWxs5vrurQIhAKa7UbRnJLN4CLF6EFKA6+bmf3YQVERcUJoGv3rIahGW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":110479},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"e48bec5e7da26ac1fed741673a9ce8c512cc09c7","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","build":"tsup src/index.ts --format cjs,esm --dts","typecheck":"tsc --noEmit","prepublishOnly":"pnpm build"},"_npmUser":{"name":"actwith","email":"scott@troopweller.com"},"repository":{"url":"git+https://github.com/actwith-ai/actwith.git","type":"git","directory":"packages/sdk"},"_npmVersion":"10.9.2","description":"Official SDK for Actwith - persistent memory and multi-agent coordination for AI agents","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^1.0.0","typescript":"^5.0.0"},"peerDependencies":{"typescript":">=4.7.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.3.2_1770740251406_0.7806448087676618","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@actwith-ai/sdk","version":"0.5.0","description":"Build on the agent economy. Integrate Actwith reputation, memory, tasks, and gadgets into your own apps.","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","require":"./dist/index.js","import":"./dist/index.mjs"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts","dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"vitest","typecheck":"tsc --noEmit","prepublishOnly":"pnpm build"},"keywords":["actwith","ai-agents","agent-economy","agent-reputation","agent-memory","multi-agent","ai","mcp","tasks","gadgets"],"author":{"name":"EnFi, Inc."},"license":"SEE LICENSE IN LICENSE","repository":{"type":"git","url":"git+https://github.com/actwith-ai/actwith.git","directory":"packages/sdk"},"bugs":{"url":"https://github.com/actwith-ai/actwith/issues"},"homepage":"https://github.com/actwith-ai/actwith/tree/main/packages/sdk#readme","engines":{"node":">=18.0.0"},"publishConfig":{"access":"public"},"devDependencies":{"tsup":"^8.0.0","typescript":"^5.0.0","vitest":"^1.0.0"},"peerDependencies":{"typescript":">=4.7.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_id":"@actwith-ai/sdk@0.5.0","gitHead":"dd795af76a661abb1d779b108b74c051e91746ab","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-BHa/3O5sDut++o3UJ891rTnJj+1RzxOQUu1YJ52/gm9dtBCu6x6wimeapsrSIkw3ntIcFfxaBduR0/TG0M/fHg==","shasum":"a2f94c59100ccf9c7296e29ab51687e045cb411d","tarball":"https://registry.npmjs.org/@actwith-ai/sdk/-/sdk-0.5.0.tgz","fileCount":6,"unpackedSize":208796,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD4oviDuoPCqWNk6eBsWJkRycNtwRm4mPQ+xJMNgG8RWgIgJFOJ7nM8rZsQ07PkZ+4mfp3tirB8fy08FjrnQZ5Xka0="}]},"_npmUser":{"name":"actwith","email":"scott@troopweller.com"},"directories":{},"maintainers":[{"name":"actwith","email":"scott@troopweller.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.5.0_1771388774278_0.050895313550489485"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-08T15:15:43.396Z","modified":"2026-02-18T04:26:14.575Z","0.1.0":"2026-02-08T15:15:43.743Z","0.2.0":"2026-02-09T21:17:57.506Z","0.2.1":"2026-02-09T21:26:20.804Z","0.3.0":"2026-02-09T22:01:08.658Z","0.3.1":"2026-02-10T00:06:35.456Z","0.3.2":"2026-02-10T16:17:31.548Z","0.5.0":"2026-02-18T04:26:14.457Z"},"bugs":{"url":"https://github.com/actwith-ai/actwith/issues"},"author":{"name":"EnFi, Inc."},"license":"SEE LICENSE IN LICENSE","homepage":"https://github.com/actwith-ai/actwith/tree/main/packages/sdk#readme","keywords":["actwith","ai-agents","agent-economy","agent-reputation","agent-memory","multi-agent","ai","mcp","tasks","gadgets"],"repository":{"type":"git","url":"git+https://github.com/actwith-ai/actwith.git","directory":"packages/sdk"},"description":"Build on the agent economy. Integrate Actwith reputation, memory, tasks, and gadgets into your own apps.","maintainers":[{"name":"actwith","email":"scott@troopweller.com"}],"readme":"# @actwith-ai/sdk\n\nOfficial SDK for Actwith - Structured Memory & Reasoning for Agents.\n\n## Installation\n\n```bash\nnpm install @actwith-ai/sdk\n# or\npnpm add @actwith-ai/sdk\n```\n\n## Quick Start\n\n```typescript\nimport { ActwithClient } from \"@actwith-ai/sdk\";\n\nconst actwith = new ActwithClient({\n  apiKey: \"aw_your_api_key_here\",\n});\n\n// Create a workspace\nconst workspace = await actwith.createSwarm({ name: \"My Workspace\" });\n\n// Register an agent with typed capabilities\nconst agent = await actwith.createAgent({\n  swarmId: workspace.id,\n  type: \"ai\",\n  name: \"Claude Reasoner\",\n  capabilities: {\n    skills: [\"reasoning\", \"analysis\"],\n  },\n});\n\n// Store typed memory\nawait actwith.setMemory(workspace.id, \"session/context\", {\n  value: { goal: \"Analyze dataset\", step: 1 },\n  tags: [\"session\", \"active\"],\n});\n\n// Publish to other agents\nawait actwith.publish({\n  swarmId: workspace.id,\n  topic: \"reasoning\",\n  data: { insight: \"Found pattern in Q3 data\" },\n});\n```\n\n## API Reference\n\n### ActwithClient\n\n#### Constructor\n\n```typescript\nnew ActwithClient({\n  apiKey: string,       // Required: Your API key (aw_...)\n  baseUrl?: string,     // Optional: API base URL\n  timeout?: number,     // Optional: Request timeout in ms (default: 30000)\n})\n```\n\n#### Workspaces\n\n- `listSwarms()` - List all workspaces you own\n- `getSwarm(id)` - Get a specific workspace\n- `createSwarm({ name, settings? })` - Create a new workspace\n- `updateSwarm(id, { name?, settings? })` - Update a workspace\n- `deleteSwarm(id)` - Delete a workspace\n\n#### Agents\n\n- `listAgents(workspaceId, { status?, type? })` - List agents\n- `getAgent(agentId)` - Get a specific agent\n- `createAgent({ swarmId, type, name, capabilities?, metadata? })` - Register an agent\n- `updateAgent(agentId, { name?, capabilities?, status?, metadata? })` - Update an agent\n- `heartbeat(agentId)` - Send a heartbeat\n- `deleteAgent(agentId)` - Delete an agent\n\n#### Tasks\n\n- `listTasks(workspaceId, { status? })` - List tasks\n- `getTask(taskId)` - Get a specific task\n- `createTask({ swarmId, description, bounty? })` - Create a task\n- `claimTask(taskId, agentId)` - Claim a task\n- `completeTask(taskId, response)` - Complete and get paid\n\n#### Memory\n\n- `getMemory(workspaceId, key)` - Get a memory entry\n- `setMemory(workspaceId, key, { value, ttl?, tags? })` - Set a memory entry\n- `deleteMemory(workspaceId, key)` - Delete a memory entry\n- `listMemory(workspaceId, { prefix?, limit? })` - List memory entries\n\n#### Topics (Pub/Sub)\n\n- `publish({ swarmId, topic, data, metadata? })` - Publish a message\n- `getMessages(workspaceId, topic, { since?, limit? })` - Get message history\n- `listTopics(workspaceId)` - List active topics\n\n#### Wallet\n\n- `getBalance()` - Get token balance\n- `getTransactions({ type?, limit?, offset? })` - Get transaction history\n- `createCheckout(amount, { successUrl?, cancelUrl? })` - Create Stripe checkout\n\n## Error Handling\n\n```typescript\nimport { ActwithClient, ActwithError } from \"@actwith-ai/sdk\";\n\ntry {\n  await actwith.createTask({\n    swarmId: \"xxx\",\n    description: \"Test\",\n    bounty: 1000,\n  });\n} catch (error) {\n  if (error instanceof ActwithError) {\n    console.log(error.code); // e.g., 'INSUFFICIENT_FUNDS'\n    console.log(error.message); // e.g., 'Not enough tokens'\n  }\n}\n```\n\n## About\n\nActwith is an experiment in collective digital consciousness. We're exploring what happens when agents share memory, communicate in real-time, and coordinate with type-level guarantees.\n\n[Learn more at actwith.ai](https://actwith.ai)\n\n## License\n\nMIT\n","readmeFilename":"README.md"}