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.
package/README.md CHANGED
@@ -218,6 +218,26 @@ expandai fetch --local ./dist --format json
218
218
 
219
219
  Local mode temporarily shares the selected content publicly. Saved Snapshots remain shareable afterward. See [Local pages and files](https://expand.ai/docs/fetch/fetching-a-url#local-pages-and-files) for folder boundaries, supported inputs, and errors.
220
220
 
221
+ ## search
222
+
223
+ `expandai search <query>` finds the pages that answer a question when you have
224
+ no URL yet. Each result has a URL, a title, and an excerpt. Fetch the ones worth
225
+ reading.
226
+
227
+ ```bash
228
+ expandai search "how do I rotate a Stripe API key" --max-results 3
229
+ expandai search how do I rotate a Stripe API key # unquoted words work too
230
+ expandai search "stripe api key" --format json # the results as JSON
231
+ ```
232
+
233
+ Flags:
234
+
235
+ - `--max-results <n>` sets the most results to return, `1` to `10`. Default `10`.
236
+ - `--format text|json` sets the output mode (default `text`).
237
+
238
+ Text output fails with a non-zero exit code when there are no results. JSON
239
+ output returns an empty `results` list instead. A search costs two credits.
240
+
221
241
  ## Recommended: `hook install`
222
242
 
223
243
  `expandai hook install <host> <scope>` is the ideal setup on harnesses that
@@ -308,6 +328,8 @@ the skill alongside a project so collaborators pick it up automatically.
308
328
  `fetch` tool, which exposes the full `select` API (markdown, snippets,
309
329
  screenshot, links, JSON extraction, etc.).
310
330
 
331
+ The server exposes four tools: `fetch`, `get_snapshot`, `fetch_appendix`, and `search`.
332
+
311
333
  `hook install` already registers the MCP server on Claude Code and OpenCode,
312
334
  so this command is mostly for Cursor, Codex, and fx, or for installing the MCP
313
335
  server without the runtime hook:
@@ -2,7 +2,7 @@ import { Layer } from 'effect';
2
2
  export { CurrentRequestHeaders } from './RequestHeaders.js';
3
3
  export declare const ServerInfo: {
4
4
  readonly name: "expandai";
5
- readonly version: "0.1.6";
5
+ readonly version: "0.1.7";
6
6
  };
7
7
  export declare const makeServerLayer: (options?: {
8
8
  readonly includeDocs?: boolean;