ncrypted 0.1.2 → 0.3.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.
package/README.md CHANGED
@@ -14,4 +14,17 @@ echo "hunter2" | npx ncrypted create --ttl 1h
14
14
  npx ncrypted read "<link>"
15
15
  ```
16
16
 
17
+ ### Vercel AI SDK
18
+
19
+ ```ts
20
+ import { generateText } from "ai";
21
+ import { ncryptedTools } from "ncrypted/ai-sdk";
22
+
23
+ await generateText({ model, tools: ncryptedTools(), prompt: "Send the new admin password to Sam as a one-time link." });
24
+ ```
25
+
26
+ Tools: `ncrypted_create`, `ncrypted_read`, `ncrypted_status`, `ncrypted_burn`, `ncrypted_to_vercel_env`. `ai` and `zod` are optional peer dependencies, needed only for this entry point.
27
+
28
+ The first 3 secrets per day are free; after that 0.005 USDC each via x402 (`npx ncrypted wallet new` creates a payer wallet).
29
+
17
30
  See the [main README](https://github.com/Seidl-Family/ncrypted) for details.