expandai 0.1.6 → 0.1.7

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.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: expandai
3
- description: Use when any public http(s) URL needs to be read, including documentation, articles, GitHub pages, blog posts, release notes, or a link the user pasted, and before calling WebFetch or curl on it. WebFetch does not execute JavaScript, so also use this whenever a fetch came back empty, truncated, 403, paywalled, or asking you to enable JavaScript. Cite every claim from captured pages using evidence IDs and capture URLs; read the Citations section before answering. Markdown may contain `[appendix omitted: … ] {N}` markers where navigation, footers and related links were moved to the appendix; resolve them with `expandai appendix` rather than refetching. Not for localhost, private or internal hosts, or JSON API endpoints.
3
+ description: Use when any public http(s) URL needs to be read, including documentation, articles, GitHub pages, blog posts, release notes, or a link the user pasted, and before calling WebFetch or curl on it. WebFetch does not execute JavaScript, so also use this whenever a fetch came back empty, truncated, 403, paywalled, or asking you to enable JavaScript. Also use it when you need to find pages on the web and have no URL yet (`expandai search`). Cite every claim from captured pages using evidence IDs and capture URLs; read the Citations section before answering. Markdown may contain `[appendix omitted: … ] {N}` markers where navigation, footers and related links were moved to the appendix; resolve them with `expandai appendix` rather than refetching. Not for localhost, private or internal hosts, or JSON API endpoints.
4
4
  metadata:
5
5
  expandai-profile-version: 0.0.4
6
6
  ---
@@ -29,6 +29,8 @@ JavaScript engine, so on a client-rendered page it returns the empty shell and n
29
29
  Skip it for localhost, private or internal hosts, and JSON API endpoints; `curl` is the right
30
30
  tool there.
31
31
 
32
+ When you need pages on the web but have no URL yet, run `expandai search` first. See Search below.
33
+
32
34
  ## Usage
33
35
 
34
36
  ```bash
@@ -237,6 +239,20 @@ Then **check that the row printed next to your number is the row you mean**. The
237
239
  scan, not a parser. That check is what catches the shapes it gets wrong: tables in blockquotes, a
238
240
  fenced block containing a shorter fence, and tables without leading pipes. Count by hand for those.
239
241
 
242
+ ## Search
243
+
244
+ When you need pages but have no URL, search first, then fetch the results worth reading:
245
+
246
+ ```bash
247
+ expandai search "how do I rotate a Stripe API key" --max-results 3
248
+ expandai fetch https://docs.stripe.com/keys --highlights "how do I rotate a Stripe API key"
249
+ ```
250
+
251
+ Each result has a title, a URL and an excerpt. The excerpt is a preview, not the page:
252
+ fetch the page and cite what you take from that fetch, never from the excerpt.
253
+
254
+ Text output exits non-zero when there are no results. `--format json` returns an empty `results` list instead.
255
+
240
256
  ## Common patterns
241
257
 
242
258
  ```bash
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "expandai",
3
3
  "type": "module",
4
- "version": "0.1.6",
4
+ "version": "0.1.7",
5
5
  "private": false,
6
6
  "description": "Unified CLI and MCP server for ExpandAI",
7
7
  "author": "ExpandAI",
@@ -69,7 +69,7 @@
69
69
  "@effect/platform-node": "0.106.0",
70
70
  "@effect/vitest": "0.29.0",
71
71
  "@expandai/schema-utils": "file:./vendor/schema-utils",
72
- "@expandai/sdk": "0.20.4",
72
+ "@expandai/sdk": "0.21.0",
73
73
  "@modelcontextprotocol/sdk": "1.29.0",
74
74
  "@openai/codex-sdk": "^0.133.0",
75
75
  "@opencode-ai/sdk": "1.15.10",
@@ -86,5 +86,5 @@
86
86
  "mime": "^4.1.0",
87
87
  "ws": "^8.21.0"
88
88
  },
89
- "expandSourceSha": "7882e4eb2760e446c5ce20b83cb9a09f9017e639"
89
+ "expandSourceSha": "7b3661609d7d78b3d74d3ac67fb39b368e7c1aeb"
90
90
  }