@moneytools-dev/ai-sdk 0.2.0 → 0.2.1

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.
package/README.md CHANGED
@@ -10,9 +10,9 @@
10
10
  | `tokenContractInfo` | free daily tier, then 0.005 USDC | ERC-20 name, symbol, decimals, supply, owner, paused, proxy |
11
11
  | `transcribeAudio` | 0.005 USDC / started minute | Speech-to-text for a public audio/video URL (up to 3 h) |
12
12
  | `getTranscription` | free | Job status/result as JSON, SRT, VTT or text |
13
- | `spendCheck` | 0.002 USDC | Allow/deny a planned x402 payment against this wallet's caps |
14
- | `setSpendCap` | 0.002 USDC | Per-call / per-day caps and allowed hosts |
15
- | `verifyPayment` | 0.003 USDC | Verify an x402 USDC payment on Base |
13
+ | `spendCheck` | 0.005 USDC | Allow/deny a planned x402 payment against this wallet's caps |
14
+ | `setSpendCap` | 0.005 USDC | Per-call / per-day caps and allowed hosts |
15
+ | `verifyPayment` | 0.005 USDC | Verify an x402 USDC payment on Base |
16
16
 
17
17
  ```bash
18
18
  npm install @moneytools-dev/ai-sdk ai zod viem
package/dist/index.d.ts CHANGED
@@ -19,7 +19,7 @@ export interface MoneyToolsOptions {
19
19
  /**
20
20
  * MoneyTools tools for the Vercel AI SDK (`generateText({ tools: moneytoolsTools({ account }) })`).
21
21
  * Payment safety: precheck and token checks at 0.005 USDC, wallet risk card at 0.02 USDC.
22
- * Transcripts: 0.005 USDC per started audio minute. Settle: 0.002–0.003 USDC per call.
22
+ * Transcripts: 0.005 USDC per started audio minute. Settle: 0.005 USDC per call.
23
23
  * Paid via x402 on Base.
24
24
  */
25
25
  export declare function moneytoolsTools(o: MoneyToolsOptions): {
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ const USDC_BASE = "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913";
10
10
  /**
11
11
  * MoneyTools tools for the Vercel AI SDK (`generateText({ tools: moneytoolsTools({ account }) })`).
12
12
  * Payment safety: precheck and token checks at 0.005 USDC, wallet risk card at 0.02 USDC.
13
- * Transcripts: 0.005 USDC per started audio minute. Settle: 0.002–0.003 USDC per call.
13
+ * Transcripts: 0.005 USDC per started audio minute. Settle: 0.005 USDC per call.
14
14
  * Paid via x402 on Base.
15
15
  */
16
16
  export function moneytoolsTools(o) {
@@ -87,17 +87,17 @@ export function moneytoolsTools(o) {
87
87
  execute: async ({ jobId, format }) => wrap(async () => (format && format !== "json" ? { jobId, format, content: await gw.getFileTranscriptionText(jobId, format) } : gw.getFileTranscription(jobId))),
88
88
  }),
89
89
  spendCheck: tool({
90
- description: "Before paying an x402 402, check the payment against this wallet's spend caps (per call / per day / allowed hosts). Costs 0.002 USDC. Returns decision allow|deny with reasons.",
90
+ description: "Before paying an x402 402, check the payment against this wallet's spend caps (per call / per day / allowed hosts). Costs 0.005 USDC. Returns decision allow|deny with reasons.",
91
91
  inputSchema: z.object({ amountUsd: z.string().describe("e.g. '0.25'"), host: z.string().describe("host asking for payment"), payTo: z.string().optional() }),
92
92
  execute: async (a) => wrap(() => settle.spendCheck({ payer, ...a })),
93
93
  }),
94
94
  setSpendCap: tool({
95
- description: "Set spend caps for this wallet (per call, per UTC day, allowed hosts). Costs 0.002 USDC.",
95
+ description: "Set spend caps for this wallet (per call, per UTC day, allowed hosts). Costs 0.005 USDC.",
96
96
  inputSchema: z.object({ perCallUsd: z.string().optional(), perDayUsd: z.string().optional(), allowHosts: z.array(z.string()).optional() }),
97
97
  execute: async (a) => wrap(() => settle.spendCapSet({ payer, ...a })),
98
98
  }),
99
99
  verifyPayment: tool({
100
- description: "Verify an x402 USDC payment on Base by tx hash or authorization nonce (who paid whom, how much, settled or not). Costs 0.003 USDC.",
100
+ description: "Verify an x402 USDC payment on Base by tx hash or authorization nonce (who paid whom, how much, settled or not). Costs 0.005 USDC.",
101
101
  inputSchema: z.object({ tx: z.string().optional(), nonce: z.string().optional() }),
102
102
  execute: async (a) => (a.tx || a.nonce ? wrap(() => settle.verify(a)) : { error: "provide tx or nonce" }),
103
103
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneytools-dev/ai-sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Vercel AI SDK tools for MoneyTools: payment-safety (precheck, wallet risk card, token checks), pay-per-file speech-to-text (Transcripts), and x402 spend controls (Settle). x402 USDC on Base, no API keys.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",