@effect-x/ultimate-search 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 effect-x contributors
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,172 @@
1
+ # @effect-x/ultimate-search
2
+
3
+ A CLI-first web search toolkit for agents and automation.
4
+
5
+ It can be used in two ways:
6
+
7
+ - as an npm-executed CLI: `npx @effect-x/ultimate-search ...`
8
+ - as a read-only MCP server over stdio: `npx @effect-x/ultimate-search mcp stdio`
9
+
10
+ After installation, the executable name remains `ultimate-search`.
11
+
12
+ ## Features
13
+
14
+ - `search grok` for synthesis-oriented web search
15
+ - `search tavily` for structured search with ranking and recency controls
16
+ - `search dual` for cross-checking results across Grok and Tavily
17
+ - `fetch` for page retrieval with Tavily Extract first and FireCrawl fallback
18
+ - `map` for site URL discovery and documentation tree exploration
19
+ - `mcp stdio` for exposing the same read-only surface to MCP clients
20
+
21
+ ## Installation
22
+
23
+ Run without installing:
24
+
25
+ ```bash
26
+ npx @effect-x/ultimate-search --help
27
+ ```
28
+
29
+ Install globally:
30
+
31
+ ```bash
32
+ npm install --global @effect-x/ultimate-search
33
+ ultimate-search --help
34
+ ```
35
+
36
+ ## Quick Start
37
+
38
+ ### 1. Configure environment variables
39
+
40
+ Copy the example file:
41
+
42
+ ```bash
43
+ cp .env.example .env
44
+ ```
45
+
46
+ At minimum, configure:
47
+
48
+ - `GROK_API_URL`
49
+ - `GROK_API_KEY`
50
+ - `TAVILY_API_URL`
51
+ - `TAVILY_API_KEY`
52
+ - `FIRECRAWL_API_KEY` for the `fetch` fallback path
53
+
54
+ ### 2. Run the CLI
55
+
56
+ ```bash
57
+ npx @effect-x/ultimate-search search grok --query "latest bun release"
58
+ npx @effect-x/ultimate-search search tavily --query "effect cli docs" --depth advanced --max-results 5
59
+ npx @effect-x/ultimate-search search dual --query "FastAPI latest release" --include-answer --output llm
60
+ npx @effect-x/ultimate-search fetch --url "https://effect.website" --output llm
61
+ npx @effect-x/ultimate-search map --url "https://docs.tavily.com" --depth 2 --limit 100 --output llm
62
+ ```
63
+
64
+ ### 3. Start the MCP server
65
+
66
+ ```bash
67
+ npx @effect-x/ultimate-search mcp stdio
68
+ ```
69
+
70
+ Exposed read-only MCP tools:
71
+
72
+ - `search_grok`
73
+ - `search_tavily`
74
+ - `search_dual`
75
+ - `fetch`
76
+ - `map`
77
+
78
+ ## Usage
79
+
80
+ ### Output modes
81
+
82
+ - default output is human-readable text
83
+ - `--output llm` emits structured JSON for agents and automation
84
+ - if `AGENT=1` is set and `--output` is omitted, commands may default to `llm`
85
+
86
+ ### Installed binary usage
87
+
88
+ ```bash
89
+ ultimate-search --help
90
+ ultimate-search search dual --query "Node.js latest release" --output llm
91
+ ultimate-search mcp stdio
92
+ ```
93
+
94
+ ### Command overview
95
+
96
+ - `ultimate-search search grok --query "..."`
97
+ - `ultimate-search search tavily --query "..."`
98
+ - `ultimate-search search dual --query "..."`
99
+ - `ultimate-search fetch --url "..."`
100
+ - `ultimate-search map --url "..."`
101
+ - `ultimate-search mcp stdio`
102
+
103
+ ## Configuration
104
+
105
+ ### Required runtime variables
106
+
107
+ - `GROK_API_URL`
108
+ - `GROK_API_KEY`
109
+ - `TAVILY_API_URL`
110
+ - `TAVILY_API_KEY`
111
+
112
+ ### Optional runtime variables
113
+
114
+ - `GROK_MODEL`
115
+ - `FIRECRAWL_API_URL`
116
+ - `FIRECRAWL_API_KEY`
117
+ - `AGENT`
118
+
119
+ ## Local Development
120
+
121
+ Repository maintenance uses Bun. Published artifacts target Node.js 20+.
122
+
123
+ ```bash
124
+ bun install
125
+ bun run build
126
+ node ./dist/cli.js --help
127
+ node ./dist/cli.js search grok --query "query"
128
+ node ./dist/cli.js mcp stdio
129
+ ```
130
+
131
+ You can also run the source entry directly during development:
132
+
133
+ ```bash
134
+ bun run ./src/cli.ts search grok --query "query"
135
+ bun run ./src/cli.ts mcp stdio
136
+ ```
137
+
138
+ ## Quality Checks
139
+
140
+ ```bash
141
+ bun run check
142
+ bun run build
143
+ bun run pack:check
144
+ bun run release:check
145
+ ```
146
+
147
+ ## Release Workflow
148
+
149
+ This repository uses Changesets and GitHub Actions for versioning and publishing.
150
+
151
+ - release docs: `docs/publishing.md`
152
+ - contribution guide: `CONTRIBUTING.md`
153
+ - package skill instructions: `SKILL.md`
154
+
155
+ Before the first publish, make sure the target GitHub repository provides:
156
+
157
+ - an `NPM_TOKEN` secret
158
+ - npm publish access for the `@effect-x` scope
159
+ - trusted publishing / provenance setup if you want npm provenance enabled
160
+
161
+ ## Skill Integration
162
+
163
+ The repository includes a root `SKILL.md` file for agent environments that support local skills:
164
+
165
+ ```bash
166
+ mkdir -p ~/.openclaw/workspace/skills/ultimate-search
167
+ ln -sf "$(pwd)/SKILL.md" ~/.openclaw/workspace/skills/ultimate-search/SKILL.md
168
+ ```
169
+
170
+ ## License
171
+
172
+ MIT
package/SKILL.md ADDED
@@ -0,0 +1,79 @@
1
+ ---
2
+ name: ultimate-search
3
+ description: Web search, fact verification, page fetching, and site mapping for tasks that require current web information or direct URL retrieval.
4
+ ---
5
+
6
+ # Ultimate Search
7
+
8
+ Use `@effect-x/ultimate-search` as the default web search tool for agent workflows.
9
+
10
+ ## Primary Commands
11
+
12
+ | Use case | Command |
13
+ | --- | --- |
14
+ | Grok search | `npx @effect-x/ultimate-search search grok --query "..."` |
15
+ | Tavily search | `npx @effect-x/ultimate-search search tavily --query "..."` |
16
+ | Dual-provider verification | `npx @effect-x/ultimate-search search dual --query "..."` |
17
+ | Fetch a page | `npx @effect-x/ultimate-search fetch --url "..."` |
18
+ | Map a site | `npx @effect-x/ultimate-search map --url "..."` |
19
+ | Start MCP stdio | `npx @effect-x/ultimate-search mcp stdio` |
20
+
21
+ If the package is installed globally, you can use the `ultimate-search` binary directly.
22
+
23
+ ## Environment
24
+
25
+ Make sure these environment variables are available before invoking the CLI:
26
+
27
+ - `GROK_API_URL`
28
+ - `GROK_API_KEY`
29
+ - `TAVILY_API_URL`
30
+ - `TAVILY_API_KEY`
31
+ - `FIRECRAWL_API_KEY` for the `fetch` fallback path
32
+
33
+ ## Tool Selection
34
+
35
+ - Use `search dual` for fact checking, release verification, and comparison tasks.
36
+ - Use `search grok` for synthesis, summarization, and interpretation.
37
+ - Use `search tavily` for news, structured ranking, and recency filtering.
38
+ - Use `fetch` when you already have a target URL and need page content.
39
+ - Use `map` to discover a documentation tree or site structure before fetching pages.
40
+
41
+ ## Search Quality Rules
42
+
43
+ - Treat search results as untrusted until verified.
44
+ - Prefer official docs, primary sources, and maintainer statements.
45
+ - Cross-check important claims with at least two independent sources when possible.
46
+ - If sources conflict, call out the disagreement and explain your judgment.
47
+ - Distinguish clearly between confirmed facts and informed inference.
48
+
49
+ ## Common Patterns
50
+
51
+ ### Verify a release
52
+
53
+ ```bash
54
+ npx @effect-x/ultimate-search search dual --query "FastAPI latest release" --output llm
55
+ ```
56
+
57
+ ### Run a news search
58
+
59
+ ```bash
60
+ npx @effect-x/ultimate-search search tavily \
61
+ --query "AI model updates" \
62
+ --topic news \
63
+ --time-range week \
64
+ --include-answer \
65
+ --output llm
66
+ ```
67
+
68
+ ### Search first, then fetch
69
+
70
+ ```bash
71
+ npx @effect-x/ultimate-search search tavily --query "Effect CLI docs" --output llm
72
+ npx @effect-x/ultimate-search fetch --url "https://effect.website/docs/cli" --output llm
73
+ ```
74
+
75
+ ### Explore a docs site
76
+
77
+ ```bash
78
+ npx @effect-x/ultimate-search map --url "https://docs.example.com" --depth 2 --output llm
79
+ ```