claude-sdk 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +20 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,24 @@
1
- # ClaudeLiquidity SDK
1
+ # Claude SDK
2
+
3
+ SDK for managing Solana wallets with an AI agent (Claude).
2
4
 
3
5
  ## Install
4
6
  ```bash
5
- npm i @claudeliquidity-sdk/sdk
7
+ npm i claude-sdk
8
+ ```
9
+ import { Connection } from "@solana/web3.js";
10
+ import { ClaudeAgent, keypairFromSource, getBalanceLamports } from "claude-sdk";
11
+
12
+ const conn = new Connection("https://api.devnet.solana.com");
13
+
14
+ const agent = new ClaudeAgent({ apiKey: process.env.CLAUDE_API_KEY ?? "dummy" });
15
+ console.log(await agent.decide("check balance"));
16
+
17
+ // Example: load a keypair (DO NOT commit secrets)
18
+ const payer = keypairFromSource({
19
+ kind: "secretKeyBase58",
20
+ secretKeyBase58: process.env.SOLANA_SECRET_BASE58!,
21
+ });
6
22
 
23
+ const bal = await getBalanceLamports(conn, payer.publicKey);
24
+ console.log("balance lamports:", bal);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Claude SDK: manage Solana wallets with an AI agent",
5
5
  "license": "MIT",
6
6
  "type": "module",