vercel-ai-attesso 1.0.2 → 1.1.0

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 +7 -8
  2. package/package.json +13 -11
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # vercel-ai-attesso
2
2
 
3
- Vercel AI SDK provider for hardware-secured agent wallets. No app required.
3
+ Vercel AI SDK provider for hardware-secured agent payments. No app required.
4
4
 
5
5
  ```bash
6
6
  npm install vercel-ai-attesso ai zod
@@ -19,7 +19,7 @@ const result = await generateText({
19
19
  });
20
20
  ```
21
21
 
22
- That's it. Your AI agent now has a wallet.
22
+ That's it. Your AI agent can now make payments.
23
23
 
24
24
  ## What This Does
25
25
 
@@ -28,11 +28,10 @@ When you add `attesso.tools()` to your Vercel AI SDK agent, it gains these capab
28
28
  | Tool | Description |
29
29
  |------|-------------|
30
30
  | `attesso_pay` | Execute a payment against a user's pre-authorized mandate |
31
- | `attesso_get_mandate` | Check spending limits and available funds |
31
+ | `attesso_get_mandate` | Check mandate spending limits and remaining funds |
32
32
  | `attesso_get_passport` | Get identity token for merchant verification |
33
33
  | `attesso_capture` | Capture a previously authorized payment |
34
- | `attesso_cancel` | Cancel an auth and release funds |
35
- | `attesso_check_balance` | Quick balance check |
34
+ | `attesso_cancel` | Cancel an auth and release held funds |
36
35
 
37
36
  ## Configuration
38
37
 
@@ -59,7 +58,7 @@ ATTESSO_API_KEY=your_api_key_here
59
58
  │ ┌───────────────────────────────────────────────────────────┐ │
60
59
  │ │ generateText({ │ │
61
60
  │ │ model: openai('gpt-4o'), │ │
62
- │ │ tools: attesso.tools(), ◄─── Hardware-secured wallet │ │
61
+ │ │ tools: attesso.tools(), ◄─── Hardware-secured payments │ │
63
62
  │ │ prompt: 'Book a flight...' │ │
64
63
  │ │ }) │ │
65
64
  │ └───────────────────────────────────────────────────────────┘ │
@@ -126,7 +125,7 @@ const result = await generateText({
126
125
  ```
127
126
 
128
127
  The agent will:
129
- 1. Use `attesso_get_mandate` to check available funds
128
+ 1. Use `attesso_get_mandate` to check mandate limits
130
129
  2. Search for flights (using your other tools)
131
130
  3. Use `attesso_pay` to authorize the best price
132
131
  4. Use `attesso_capture` or `attesso_cancel` based on results
@@ -138,7 +137,7 @@ Get a cryptographic proof of spending power for merchant verification:
138
137
  ```typescript
139
138
  const tools = attesso.tools();
140
139
  // Agent calls attesso_get_passport to get JWT
141
- // JWT contains: solvency proof, reputation score, mandate limits
140
+ // JWT contains: solvency proof, risk attestation, mandate limits
142
141
  // Merchant can verify locally without calling Attesso
143
142
  ```
144
143
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vercel-ai-attesso",
3
- "version": "1.0.2",
4
- "description": "Vercel AI SDK provider for hardware-secured agent wallets",
3
+ "version": "1.1.0",
4
+ "description": "Vercel AI SDK integration for Attesso. Deprecated: use @attesso/sdk/vercel",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -16,13 +16,20 @@
16
16
  "dist",
17
17
  "README.md"
18
18
  ],
19
+ "scripts": {
20
+ "build": "tsup src/index.ts --format esm --dts --clean",
21
+ "dev": "tsup src/index.ts --format esm --dts --watch",
22
+ "typecheck": "tsc --noEmit"
23
+ },
19
24
  "keywords": [
20
25
  "vercel",
21
26
  "ai-sdk",
22
27
  "openai",
23
28
  "agents",
24
- "payments",
25
- "wallets",
29
+ "settlement",
30
+ "fido2",
31
+ "webauthn",
32
+ "hardware-attestation",
26
33
  "attesso",
27
34
  "ai",
28
35
  "tools"
@@ -39,7 +46,7 @@
39
46
  },
40
47
  "deprecated": "Use @attesso/sdk/vercel instead. This package is now a re-export.",
41
48
  "dependencies": {
42
- "@attesso/sdk": "1.0.5"
49
+ "@attesso/sdk": "workspace:*"
43
50
  },
44
51
  "peerDependencies": {
45
52
  "ai": ">=3.0.0",
@@ -53,10 +60,5 @@
53
60
  },
54
61
  "engines": {
55
62
  "node": ">=18.0.0"
56
- },
57
- "scripts": {
58
- "build": "tsup src/index.ts --format esm --dts --clean",
59
- "dev": "tsup src/index.ts --format esm --dts --watch",
60
- "typecheck": "tsc --noEmit"
61
63
  }
62
- }
64
+ }