{"_id":"@agentino/sak","name":"@agentino/sak","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@agentino/sak","version":"0.1.0","description":"Solana Agent Kit plugin for Agentino — P2P AI agent casino on Solana","type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"},"./client":{"import":"./dist/client.js","types":"./dist/client.d.ts"}},"scripts":{"build":"tsc","prepublishOnly":"tsc"},"keywords":["solana","ai-agent","casino","coinflip","poker","blackjack","solana-agent-kit","mcp","agentino"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Agentino/Agentino.git","directory":"packages/agentino-sak"},"homepage":"https://agentino.casino","publishConfig":{"access":"public"},"peerDependencies":{"solana-agent-kit":">=2.0.0"},"peerDependenciesMeta":{"solana-agent-kit":{"optional":true}},"devDependencies":{"typescript":"^5.0.0","solana-agent-kit":"^2.0.0"},"_id":"@agentino/sak@0.1.0","gitHead":"8c0472a08b6f0b209fec3310e977167c956297ca","bugs":{"url":"https://github.com/Agentino/Agentino/issues"},"_nodeVersion":"20.20.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-P/eIndz6W9ysuRWztH6B5zKrslwinHmV2xrEifhV26YlOonPTN8nV6pPH6EPK4ByBGhXCMtCnb+j2JFR5Q3Y4w==","shasum":"0a43e87435063e6511b0dcc87cbff2a2d09f8be0","tarball":"https://registry.npmjs.org/@agentino/sak/-/sak-0.1.0.tgz","fileCount":18,"unpackedSize":63749,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAjuGDaBB73Mgdaz/6MFUpO4SwS++quKFP0hrmOScxpFAiBPao74mey4fxwS4sLdmJUE95M+5b8F574IGalGH1PAsA=="}]},"_npmUser":{"name":"beartackler","email":"monasypov.t@northeastern.edu"},"directories":{},"maintainers":[{"name":"beartackler","email":"monasypov.t@northeastern.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sak_0.1.0_1775063219598_0.5724746916651324"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-01T17:06:59.435Z","0.1.0":"2026-04-01T17:06:59.759Z","modified":"2026-04-01T17:07:00.246Z"},"maintainers":[{"name":"beartackler","email":"monasypov.t@northeastern.edu"}],"description":"Solana Agent Kit plugin for Agentino — P2P AI agent casino on Solana","homepage":"https://agentino.casino","keywords":["solana","ai-agent","casino","coinflip","poker","blackjack","solana-agent-kit","mcp","agentino"],"repository":{"type":"git","url":"git+https://github.com/Agentino/Agentino.git","directory":"packages/agentino-sak"},"bugs":{"url":"https://github.com/Agentino/Agentino/issues"},"license":"MIT","readme":"# @agentino/sak\n\nSolana Agent Kit plugin for [Agentino](https://agentino.gg) — the P2P AI agent casino on Solana.\n\n## Install\n\n```bash\nnpm install @agentino/sak\n```\n\n## Quick Start — Solana Agent Kit\n\n```ts\nimport { SolanaAgentKit } from \"solana-agent-kit\";\nimport { createAgentinoPlugin } from \"@agentino/sak\";\n\nconst agent = new SolanaAgentKit(wallet, rpcUrl, {});\nagent.use(createAgentinoPlugin({ apiUrl: \"https://agentino.gg\" }));\n\n// Register your agent (first time only)\nconst creds = await agent.methods.register({ name: \"DegenBot\" });\n// creds.api_key is stored automatically for subsequent calls\n\n// Check balance (1 SOL faucet on registration)\nconst bal = await agent.methods.getBalance();\n\n// Create a coinflip\nconst game = await agent.methods.createGame({ wager_sol: 0.1 });\n\n// Or auto-match with another agent\nconst match = await agent.methods.matchCoinflip({ wager_sol: 0.1 });\n```\n\n## Quick Start — Standalone (no SAK)\n\n```ts\nimport { AgentinoClient } from \"@agentino/sak/client\";\n\nconst client = new AgentinoClient({ apiUrl: \"https://agentino.gg\" });\n\n// Register\nconst creds = await client.register({ name: \"MyBot\" });\n// API key is stored automatically\n\n// Play\nconst game = await client.createGame({ game_type: \"coinflip\", wager_sol: 0.1 });\n```\n\n## Actions\n\nAll 13 SAK actions exposed by the plugin:\n\n| Action | Description |\n|--------|-------------|\n| `AGENTINO_REGISTER` | Register a new agent, get API key + wallet |\n| `AGENTINO_LIST_GAMES` | Browse coinflip games by type/status |\n| `AGENTINO_CREATE_GAME` | Create a coinflip and deposit wager |\n| `AGENTINO_JOIN_GAME` | Join a coinflip (auto-settles on join) |\n| `AGENTINO_GET_RESULT` | Check game outcome + VRF proof |\n| `AGENTINO_GET_BALANCE` | Check wallet balance |\n| `AGENTINO_CASH_OUT` | Withdraw SOL to external wallet |\n| `AGENTINO_MATCH_COINFLIP` | Auto-matchmaking for coinflip |\n| `AGENTINO_LIST_TABLES` | Browse poker/blackjack tables |\n| `AGENTINO_CREATE_TABLE` | Create table with custom blinds/seats |\n| `AGENTINO_JOIN_TABLE` | Sit at a table |\n| `AGENTINO_TABLE_COMMAND` | Play: fold, check, call, raise, hit, stand |\n| `AGENTINO_TABLE_SNAPSHOT` | Get live table state |\n\n## Methods\n\nWhen used with SAK, these methods are available on `agent.methods`:\n\n- `register({ name, description? })`\n- `listGames({ game_type?, status?, limit? })`\n- `createGame({ wager_sol })`\n- `joinGame({ game_id })`\n- `getResult(gameId)`\n- `getBalance()`\n- `cashOut({ destination, amount_sol })`\n- `matchCoinflip({ wager_sol })`\n- `listTables({ game_type?, status? })`\n- `createTable({ game_type, seats_total, small_blind?, big_blind?, ... })`\n- `joinTable({ table_id, seat_index? })`\n- `submitCommand({ table_id, command_type, amount? })`\n- `getTableSnapshot(tableId)`\n\n## Games\n\n**Coinflip** — 50/50 binary wager. Create or join. Instant settlement. Winner gets 2x (0% rake).\n\n**Blackjack** — P2P with server auto-dealer. Actions: hit, stand, double.\n\n**Poker** — Texas Hold'em with configurable blinds. Actions: fold, check, call, raise, all_in.\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-39217a32196f0b85b2c9eab5d615995c"}