expandai 0.1.3 → 0.1.4
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 +13 -0
- package/build/dts/Mcp/Server.d.ts +1 -1
- package/build/esm/index.js +89 -80
- package/build/esm/main.js +184 -175
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -201,10 +201,23 @@ expandai fetch https://docs.example.com/api --highlights "authentication"
|
|
|
201
201
|
Flags:
|
|
202
202
|
|
|
203
203
|
- `--format text|json` sets the output mode (default `text`).
|
|
204
|
+
- `--local` fetches a localhost HTTP URL or a local file or folder path.
|
|
204
205
|
- `--highlights <query>` runs Highlights and returns relevant snippets instead of the full page.
|
|
205
206
|
- `--max-results <n>` sets the snippet count when `--highlights` is set. Default `5`, max `50`.
|
|
206
207
|
- `--min-score <n>` sets the minimum relevance score, `0`–`1`. Default `0.6`.
|
|
207
208
|
|
|
209
|
+
### Local pages and files
|
|
210
|
+
|
|
211
|
+
Sign in with `expandai login`, then run the command on the machine that has the page:
|
|
212
|
+
|
|
213
|
+
```bash
|
|
214
|
+
expandai fetch --local http://localhost:3000
|
|
215
|
+
expandai fetch --local ./page.html
|
|
216
|
+
expandai fetch --local ./dist --format json
|
|
217
|
+
```
|
|
218
|
+
|
|
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
|
+
|
|
208
221
|
## Recommended: `hook install`
|
|
209
222
|
|
|
210
223
|
`expandai hook install <host> <scope>` is the ideal setup on harnesses that
|
|
@@ -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.
|
|
5
|
+
readonly version: "0.1.4";
|
|
6
6
|
};
|
|
7
7
|
export declare const makeServerLayer: (options?: {
|
|
8
8
|
readonly includeDocs?: boolean;
|