@surfaceapi/ai-sdk 0.1.2 → 0.1.3

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 +9 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -18,6 +18,15 @@ export SURFACE_KEY=... # or SURFACE_API_KEY; paste the key value
18
18
 
19
19
  A key gets its own million free requests a month. Anonymous calls still work on a shared demo limit.
20
20
 
21
+ ## Check a link with the key you just minted
22
+
23
+ ```bash
24
+ npx @surfaceapi/surface init
25
+ npx @surfaceapi/surface preflight https://youtu.be/jNQXAC9IVRw
26
+ ```
27
+
28
+ The first command writes `.env`. The second reads that key and calls `POST /v1/preflight`. The answer is `fetch` or `skip`.
29
+
21
30
  ## Install
22
31
 
23
32
  ```bash
@@ -49,5 +58,3 @@ Point any MCP client at `https://nova-otter-delta-cloud.grok.me/mcp` (tool `pref
49
58
  - https://www.npmjs.com/package/@surfaceapi/surface
50
59
  - https://pypi.org/project/surfaceapi/
51
60
  - https://huggingface.co/spaces/surfaceapi/surface-preflight
52
-
53
- CLI and GitHub Action are coming soon.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@surfaceapi/ai-sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Surface for the Vercel AI SDK: the link-safety layer between an AI agent and the open web. One tool, surfacePreflight, that tells your agent whether a link is worth fetching.",
5
5
  "type": "module",
6
6
  "main": "./index.js",