@victor-software-house/exa-cli 0.0.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/CHANGELOG.md ADDED
@@ -0,0 +1 @@
1
+ # Changelog
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Victor Araújo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,67 @@
1
+ # @victor-software-house/exa-cli
2
+
3
+ Public CLI for [Exa](https://exa.ai/) search, contents, and answer.
4
+
5
+ ## Install
6
+
7
+ Agents and local checkouts install the GitHub Release binary through mise. Pin `0.0.0` — that tag is a rolling channel, not a frozen npm version:
8
+
9
+ ```toml
10
+ [tools]
11
+ "github:victor-software-house/exa-cli" = "0.0.0"
12
+ ```
13
+
14
+ ```bash
15
+ mise install
16
+ exa --help
17
+ ```
18
+
19
+ npm is not the install path until the package is published. Do not `npm i -g`. Source checkout:
20
+
21
+ ```bash
22
+ mise install
23
+ bun src/cli.ts --help
24
+ ```
25
+
26
+ The binary name is `exa`. That can collide with the old `exa` / `eza` ls replacement.
27
+
28
+ ## Auth
29
+
30
+ Set `EXA_API_KEY`, or pass `--api-key`. There is no interactive login.
31
+
32
+ Operator checkouts with the global fnox profile `exa` get the key from mise (`mise.dev.toml` / `mise -E test`). Contributors can export the variable themselves.
33
+
34
+ ## Commands
35
+
36
+ ```bash
37
+ exa search "Exa search type auto vs neural official docs" --include-domain exa.ai
38
+ exa contents https://exa.ai/docs/reference/search.md
39
+ exa answer "What Exa search type replaces the deprecated research API?"
40
+ exa doctor
41
+ ```
42
+
43
+ Stdout is the payload. Stderr is progress, cache hits, and errors. `--json` keeps the provider body `jq`-friendly. Cache metadata stays on stderr unless `--envelope`.
44
+
45
+ ## Cache
46
+
47
+ Identical requests are served from a local SQLite cache under `$XDG_CACHE_HOME/exa-cli/` or `~/.cache/exa-cli/`. Default TTL is 24 hours.
48
+
49
+ - `--refresh` ignores a stored hit and overwrites it
50
+ - `--no-cache` skips read and write
51
+ - `--ttl` overrides the TTL in seconds
52
+
53
+ Do not repeat an identical call from an agent loop. Use `--refresh` only when you need a fresh provider response.
54
+
55
+ ## Agent skill
56
+
57
+ ```bash
58
+ npx skills add victor-software-house/exa-cli
59
+ ```
60
+
61
+ ## Development
62
+
63
+ ```bash
64
+ mise install
65
+ mise run verify
66
+ bun src/cli.ts search --help
67
+ ```
package/dist/cli.d.mts ADDED
@@ -0,0 +1 @@
1
+ import "zod/compile";