opencode-search 0.0.8 → 1.0.0-next.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/README.md +49 -8
- package/REMOVED.md +29 -0
- package/dist/package.json +18 -10
- package/dist/search.d.ts +2 -3
- package/dist/search.d.ts.map +1 -1
- package/dist/search.js +19 -13
- package/dist/search.js.map +1 -1
- package/dist/src/cache.d.ts.map +1 -1
- package/dist/src/cache.js +2 -4
- package/dist/src/cache.js.map +1 -1
- package/dist/src/format.d.ts.map +1 -1
- package/dist/src/format.js +2 -4
- package/dist/src/format.js.map +1 -1
- package/dist/src/html.d.ts +8 -0
- package/dist/src/html.d.ts.map +1 -0
- package/dist/src/html.js +28 -0
- package/dist/src/html.js.map +1 -0
- package/dist/src/opencode/notify.d.ts +4 -4
- package/dist/src/opencode/notify.d.ts.map +1 -1
- package/dist/src/opencode/notify.js +4 -9
- package/dist/src/opencode/notify.js.map +1 -1
- package/dist/src/parse-results.d.ts.map +1 -1
- package/dist/src/parse-results.js +1 -2
- package/dist/src/parse-results.js.map +1 -1
- package/dist/src/providers/brave-search.d.ts +4 -0
- package/dist/src/providers/brave-search.d.ts.map +1 -0
- package/dist/src/providers/brave-search.js +29 -0
- package/dist/src/providers/brave-search.js.map +1 -0
- package/dist/src/providers/bsky-search.d.ts.map +1 -1
- package/dist/src/providers/bsky-search.js +4 -8
- package/dist/src/providers/bsky-search.js.map +1 -1
- package/dist/src/providers/ddg-search.d.ts +6 -1
- package/dist/src/providers/ddg-search.d.ts.map +1 -1
- package/dist/src/providers/ddg-search.js +76 -36
- package/dist/src/providers/ddg-search.js.map +1 -1
- package/dist/src/providers/gnews-search.d.ts +9 -0
- package/dist/src/providers/gnews-search.d.ts.map +1 -0
- package/dist/src/providers/gnews-search.js +48 -0
- package/dist/src/providers/gnews-search.js.map +1 -0
- package/dist/src/providers/mdn-search.d.ts.map +1 -1
- package/dist/src/providers/mdn-search.js +4 -8
- package/dist/src/providers/mdn-search.js.map +1 -1
- package/dist/src/providers/standard-search.d.ts.map +1 -1
- package/dist/src/providers/standard-search.js +6 -12
- package/dist/src/providers/standard-search.js.map +1 -1
- package/dist/src/providers/wiki-search.d.ts.map +1 -1
- package/dist/src/providers/wiki-search.js +3 -6
- package/dist/src/providers/wiki-search.js.map +1 -1
- package/dist/src/renderers.d.ts +5 -1
- package/dist/src/renderers.d.ts.map +1 -1
- package/dist/src/renderers.js +12 -1
- package/dist/src/renderers.js.map +1 -1
- package/dist/src/safe.d.ts +5 -4
- package/dist/src/safe.d.ts.map +1 -1
- package/dist/src/safe.js +4 -18
- package/dist/src/safe.js.map +1 -1
- package/dist/src/search.d.ts +10 -62
- package/dist/src/search.d.ts.map +1 -1
- package/dist/src/search.js +225 -128
- package/dist/src/search.js.map +1 -1
- package/dist/src/strategies.d.ts +13 -0
- package/dist/src/strategies.d.ts.map +1 -0
- package/dist/src/strategies.js +48 -0
- package/dist/src/strategies.js.map +1 -0
- package/dist/src/v1-message.d.ts +2 -0
- package/dist/src/v1-message.d.ts.map +1 -0
- package/dist/src/v1-message.js +11 -0
- package/dist/src/v1-message.js.map +1 -0
- package/package.json +18 -10
package/README.md
CHANGED
|
@@ -1,32 +1,75 @@
|
|
|
1
1
|
# opencode-search
|
|
2
2
|
|
|
3
|
-
An [OpenCode](https://opencode.ai) plugin that gives your agent access to DuckDuckGo, Wikipedia, Bluesky, [standard.site](https://standard.site), and MDN Web Docs.
|
|
3
|
+
An [OpenCode](https://opencode.ai) plugin that gives your agent access to DuckDuckGo, Brave, Google News, Wikipedia, Bluesky, [standard.site](https://standard.site), and MDN Web Docs.
|
|
4
4
|
|
|
5
5
|
<img width="786" height="377" alt="image" src="https://github.com/user-attachments/assets/9ad19ade-402a-4cc1-9882-a33d2a8e4d42" />
|
|
6
6
|
|
|
7
|
+
## What this adds over OpenCode's built-in tools
|
|
8
|
+
|
|
9
|
+
Seven search tools that work without an API key. OpenCode 1 has no web search at all unless you use its own provider, and OpenCode 2's requires a key for Exa, Firecrawl, Parallel or Tavily.
|
|
10
|
+
|
|
11
|
+
Five of the tools search sources a general web search does not reach: Bluesky posts and standard.site records through the AT Protocol, Wikipedia and MDN through their own APIs, and Google News for what is being published now.
|
|
12
|
+
|
|
13
|
+
**Use at your own risk:** the DuckDuckGo and Brave providers scrape HTML nobody promised would stay parseable, so they can break without warning and may run against a service's terms. Results are unverified input.
|
|
14
|
+
|
|
15
|
+
Google web search and Mojeek were removed — see [REMOVED.md](REMOVED.md) for what was tested and why.
|
|
16
|
+
|
|
7
17
|
## Quick Start
|
|
8
18
|
|
|
19
|
+
### OpenCode 2
|
|
20
|
+
|
|
9
21
|
Add to your `opencode.json`:
|
|
10
22
|
|
|
11
23
|
```json
|
|
12
24
|
{
|
|
13
|
-
"
|
|
25
|
+
"plugins": ["opencode-search"]
|
|
14
26
|
}
|
|
15
27
|
```
|
|
16
28
|
|
|
17
29
|
Restart OpenCode. The plugin will be installed automatically.
|
|
18
30
|
|
|
31
|
+
### OpenCode 1
|
|
32
|
+
|
|
33
|
+
```json
|
|
34
|
+
{
|
|
35
|
+
"plugin": ["opencode-search@0.0.9"]
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**0.0.9 is the last release for OpenCode 1 and will not be updated.** New providers and fixes land on 1.x, which requires OpenCode 2. Pin the version rather than tracking latest.
|
|
40
|
+
|
|
19
41
|
## Tools
|
|
20
42
|
|
|
21
43
|
### ddg-search
|
|
22
44
|
|
|
23
|
-
Search the web using DuckDuckGo. Returns
|
|
45
|
+
Search the web using DuckDuckGo. Returns structured results with title, URL, and snippet.
|
|
46
|
+
|
|
47
|
+
| Parameter | Type | Required |
|
|
48
|
+
| --------- | ------ | -------- |
|
|
49
|
+
| `query` | string | yes |
|
|
50
|
+
|
|
51
|
+
Uses DuckDuckGo's HTML endpoint with POST form parameters to avoid CAPTCHAs.
|
|
52
|
+
Results are parsed from the HTML response into structured title/URL/abstract triples.
|
|
53
|
+
|
|
54
|
+
### brave-search
|
|
55
|
+
|
|
56
|
+
Search the web using Brave Search. Returns structured results with title, URL, and snippet.
|
|
24
57
|
|
|
25
58
|
| Parameter | Type | Required |
|
|
26
59
|
| --------- | ------ | -------- |
|
|
27
60
|
| `query` | string | yes |
|
|
28
61
|
|
|
29
|
-
|
|
62
|
+
Brave serves server-rendered HTML, so it is the most reliable general web provider here.
|
|
63
|
+
|
|
64
|
+
### gnews-search
|
|
65
|
+
|
|
66
|
+
Search Google News for recent articles. Returns headline, publisher, and publication date.
|
|
67
|
+
|
|
68
|
+
| Parameter | Type | Required |
|
|
69
|
+
| --------- | ------ | -------- |
|
|
70
|
+
| `query` | string | yes |
|
|
71
|
+
|
|
72
|
+
**News and tech media only — not general web search, and not documentation.** It queries the Google News RSS feed, which is a different service from Google web search and still answers plain HTTP requests. Links are `news.google.com` redirect URLs rather than publisher URLs; they resolve only in a browser, so they are reported as-is.
|
|
30
73
|
|
|
31
74
|
### bsky-search
|
|
32
75
|
|
|
@@ -50,6 +93,8 @@ Search [standard.site](https://standard.site) document records on the AT Protoco
|
|
|
50
93
|
|
|
51
94
|
standard.site is a publishing platform built on the AT Protocol where content is stored in a user's personal data repository. Unlike traditional websites that require crawlers and indexing pipelines to be discoverable, content published on standard.site is structured, portable, and directly queryable through the AT Protocol.
|
|
52
95
|
|
|
96
|
+
**Currently unavailable.** The appview this tool queries, `standard-search.octet-stream.net`, refuses connections, and no replacement endpoint is published on standard.site or in its docs. The provider is left in place unchanged; its live test soft-skips while the host is unreachable, so the suite stays green without masking parser regressions.
|
|
97
|
+
|
|
53
98
|
### wiki-search
|
|
54
99
|
|
|
55
100
|
Search Wikipedia articles using the MediaWiki REST API. Returns structured results with title, description, excerpt, and a direct link to the article. No API key required.
|
|
@@ -69,10 +114,6 @@ Search MDN Web Docs. Returns documentation pages for web technologies with title
|
|
|
69
114
|
| `limit` | number | no | Number of results to return |
|
|
70
115
|
| `page` | number | no | Page number for pagination |
|
|
71
116
|
|
|
72
|
-
## Why not Google?
|
|
73
|
-
|
|
74
|
-
Google Custom Search JSON API has been deprecated for API key authentication. The Programmable Search Engine is being wound down in favor of a new product limited to 50 domains. Existing engines continue to work until January 1, 2027, but new API keys can no longer be created for this use case. We removed Google search support entirely rather than ship a tool that will break.
|
|
75
|
-
|
|
76
117
|
## License
|
|
77
118
|
|
|
78
119
|
MIT
|
package/REMOVED.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Removed providers
|
|
2
|
+
|
|
3
|
+
## ggl-search — Google web search
|
|
4
|
+
|
|
5
|
+
Google returns no results to a non-browser client. Since 2025 it requires JavaScript for `/search`: a plain HTTP request gets a redirect stub pointing at `/httpservice/retry/enablejs`, with no results and no inline data in the body. A DOM parser or JS runtime does not help, because the results were never in the response. Legacy and text-browser user agents get a different wall, an "Update your browser" page.
|
|
6
|
+
|
|
7
|
+
Tested 2026-09-19 from a residential IP, first request of a fresh query. None returned results:
|
|
8
|
+
|
|
9
|
+
- Seven browser TLS fingerprints via [curl_cffi](https://github.com/lexiforest/curl_cffi) — Chrome 131/133a/136, Firefox 135, Safari 18, Edge 101.
|
|
10
|
+
- HTTP/2 with a full Chrome header set, including `sec-ch-ua*` and `sec-fetch-*`.
|
|
11
|
+
- Session cookie warm-up: `NID`/`AEC` collected from `GET /`, then searching on that session.
|
|
12
|
+
- Four regional domains (`.co.uk`, `.de`, `.com.au`, `.co.in`) with `CONSENT`/`SOCS` cookies, plus `encrypted.google.com`.
|
|
13
|
+
- `&gbv=1`, `&udm=14`, `&nojs=1`, `/xhtml`, `/m`.
|
|
14
|
+
|
|
15
|
+
The gate is applied before the page is built, so TLS fingerprinting is not the variable.
|
|
16
|
+
|
|
17
|
+
[`googler`](https://github.com/jarun/googler) was archived in 2021, [`googlesearch-python`](https://github.com/Nv7-GitHub/googlesearch) has no commits since 2025-02 and an issue titled "google stop Lynx support" (2025-09), and `yagooglesearch` stopped in 2024.
|
|
18
|
+
|
|
19
|
+
Use `brave-search` or `ddg-search` instead, or `gnews-search` for news — Google News RSS is a separate service and still answers plain HTTP.
|
|
20
|
+
|
|
21
|
+
## mojeek-search — Mojeek
|
|
22
|
+
|
|
23
|
+
Mojeek's [robots.txt](https://www.mojeek.com/robots.txt) is `Disallow: /search` for all user agents, and their [terms](https://www.mojeek.com/about/terms.html) prohibit automated access except by "an authorised Mojeek API user", stating that "scraping the Services without Our prior consent is expressly prohibited".
|
|
24
|
+
|
|
25
|
+
They added an ALTCHA proof-of-work challenge to `/search` on 2026-06-23, citing roughly 100 automated searches per second and 8 million a day on [their forum](https://community.mojeek.com/t/altcha-appears-before-i-can-get-search-results-and-i-cant-pass-it/3036). Continued requests escalate to a network-level `403 Forbidden` reading "your network appears to be sending automated queries".
|
|
26
|
+
|
|
27
|
+
Their [Web Search API](https://www.mojeek.com/services/search/web-search-api/) is the supported route.
|
|
28
|
+
|
|
29
|
+
The challenge page returns HTTP 200, so a status-code check reports the provider as healthy while the parser returns zero results. The remaining scraped providers check the body for challenge markers and raise, rather than returning an empty list.
|
package/dist/package.json
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-search",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "OpenCode plugin that provides web search tools using DuckDuckGo, Wikipedia, Bluesky, Standard.site, and MDN Web Docs.",
|
|
3
|
+
"version": "1.0.0-next.0",
|
|
4
|
+
"description": "OpenCode plugin that provides web search tools using DuckDuckGo, Brave, Google News, Wikipedia, Bluesky, Standard.site, and MDN Web Docs.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"opencode",
|
|
7
7
|
"opencode-plugin",
|
|
8
8
|
"plugin",
|
|
9
9
|
"search",
|
|
10
10
|
"web-search",
|
|
11
|
-
"wikipedia",
|
|
12
11
|
"duckduckgo",
|
|
12
|
+
"brave",
|
|
13
|
+
"google-news",
|
|
14
|
+
"wikipedia",
|
|
15
|
+
"mdn",
|
|
13
16
|
"bluesky",
|
|
14
17
|
"atproto",
|
|
15
18
|
"standard-site"
|
|
@@ -27,8 +30,8 @@
|
|
|
27
30
|
"type": "module",
|
|
28
31
|
"exports": {
|
|
29
32
|
".": {
|
|
30
|
-
"
|
|
31
|
-
"
|
|
33
|
+
"types": "./dist/search.d.ts",
|
|
34
|
+
"import": "./dist/search.js"
|
|
32
35
|
}
|
|
33
36
|
},
|
|
34
37
|
"main": "./dist/search.js",
|
|
@@ -36,27 +39,32 @@
|
|
|
36
39
|
"files": [
|
|
37
40
|
"dist/",
|
|
38
41
|
"README.md",
|
|
42
|
+
"REMOVED.md",
|
|
39
43
|
"LICENSE"
|
|
40
44
|
],
|
|
41
45
|
"scripts": {
|
|
42
46
|
"build": "npm run clean && tsc",
|
|
43
47
|
"clean": "rm -rf dist",
|
|
44
|
-
"fmt": "bun run dprint fmt",
|
|
45
48
|
"prepublishOnly": "npm run build",
|
|
46
|
-
"test": "bun test"
|
|
49
|
+
"test": "bun test",
|
|
50
|
+
"typecheck": "tsc --noEmit"
|
|
47
51
|
},
|
|
48
52
|
"dependencies": {
|
|
49
53
|
"@mozilla/readability": "0.5.0",
|
|
50
54
|
"jsdom": "26.1.0"
|
|
51
55
|
},
|
|
52
56
|
"devDependencies": {
|
|
53
|
-
"@opencode
|
|
57
|
+
"@opencode/plugin": "2.0.10",
|
|
54
58
|
"@types/bun": "1.3.9",
|
|
55
59
|
"@types/jsdom": "27.0.0",
|
|
56
|
-
"dprint": "latest",
|
|
57
60
|
"typescript": "5.9.3"
|
|
58
61
|
},
|
|
59
62
|
"peerDependencies": {
|
|
60
|
-
"@opencode
|
|
63
|
+
"@opencode/plugin": ">=2.0.0"
|
|
64
|
+
},
|
|
65
|
+
"peerDependenciesMeta": {
|
|
66
|
+
"@opencode/plugin": {
|
|
67
|
+
"optional": true
|
|
68
|
+
}
|
|
61
69
|
}
|
|
62
70
|
}
|
package/dist/search.d.ts
CHANGED
package/dist/search.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../search.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../search.ts"],"names":[],"mappings":";AAYA,wBASE"}
|
package/dist/search.js
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { createSearchTools } from "./src/search.js";
|
|
2
|
+
import { safeAsync } from "./src/safe.js";
|
|
3
|
+
import { V1_MESSAGE } from "./src/v1-message.js";
|
|
4
|
+
// Under OpenCode 1 this package is absent or exports no Plugin.define.
|
|
5
|
+
// A dynamic import makes that catchable, so the failure can be a message instead of a stack trace.
|
|
6
|
+
const { data: plugin, error } = await safeAsync(() => import('@opencode/plugin'));
|
|
7
|
+
if (error || typeof plugin.Plugin?.define !== 'function') {
|
|
8
|
+
throw new Error(V1_MESSAGE, { cause: error ?? new Error('Plugin.define is not exported') });
|
|
9
|
+
}
|
|
10
|
+
export default plugin.Plugin.define({
|
|
11
|
+
id: 'whaaaley.search',
|
|
12
|
+
setup: async (ctx) => {
|
|
13
|
+
await ctx.tool.transform((tools) => {
|
|
14
|
+
for (const definition of createSearchTools(ctx)) {
|
|
15
|
+
tools.add(definition);
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
},
|
|
19
|
+
});
|
|
14
20
|
//# sourceMappingURL=search.js.map
|
package/dist/search.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.js","sourceRoot":"","sources":["../search.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"search.js","sourceRoot":"","sources":["../search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAEhD,uEAAuE;AACvE,mGAAmG;AACnG,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,SAAS,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAA;AAEjF,IAAI,KAAK,IAAI,OAAO,MAAM,CAAC,MAAM,EAAE,MAAM,KAAK,UAAU,EAAE,CAAC;IACzD,MAAM,IAAI,KAAK,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,KAAK,IAAI,IAAI,KAAK,CAAC,+BAA+B,CAAC,EAAE,CAAC,CAAA;AAC7F,CAAC;AAED,eAAe,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;IAClC,EAAE,EAAE,iBAAiB;IACrB,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE;QACnB,MAAM,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE;YACjC,KAAK,MAAM,UAAU,IAAI,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC;gBAChD,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;YACvB,CAAC;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;CACF,CAAC,CAAA"}
|
package/dist/src/cache.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/cache.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/cache.ts"],"names":[],"mappings":"AAmCA,eAAO,MAAM,GAAG,GAAU,CAAC,GAAG,OAAO,EAAE,KAAK,MAAM,KAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAcpE,CAAA;AAED,eAAO,MAAM,GAAG,GAAU,KAAK,MAAM,EAAE,MAAM,OAAO,KAAG,OAAO,CAAC,IAAI,CASlE,CAAA"}
|
package/dist/src/cache.js
CHANGED
|
@@ -7,9 +7,8 @@ const CACHE_DURATION = 7 * 24 * 60 * 60 * 1000; // 7 days
|
|
|
7
7
|
let store = {};
|
|
8
8
|
let loaded = false;
|
|
9
9
|
const loadCache = async () => {
|
|
10
|
-
if (loaded)
|
|
10
|
+
if (loaded)
|
|
11
11
|
return;
|
|
12
|
-
}
|
|
13
12
|
const { data } = await safeAsync(() => readFile(CACHE_FILE, 'utf-8'));
|
|
14
13
|
if (data) {
|
|
15
14
|
const { data: parsed } = safe(() => JSON.parse(data));
|
|
@@ -23,9 +22,8 @@ const saveCache = async () => {
|
|
|
23
22
|
export const get = async (key) => {
|
|
24
23
|
await loadCache();
|
|
25
24
|
const entry = store[key];
|
|
26
|
-
if (!entry)
|
|
25
|
+
if (!entry)
|
|
27
26
|
return null;
|
|
28
|
-
}
|
|
29
27
|
const age = Date.now() - entry.timestamp;
|
|
30
28
|
if (age > CACHE_DURATION) {
|
|
31
29
|
delete store[key];
|
package/dist/src/cache.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.js","sourceRoot":"","sources":["../../src/cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACtD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAE3C,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAA;AACtF,MAAM,cAAc,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA,CAAC,SAAS;A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BAAiB,KAAG,
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/format.ts"],"names":[],"mappings":"AAAA,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,EAAE,SAAS,iBAAiB,KAAG,MAYxE,CAAA;AAqBD,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,KAAG,MAGxC,CAAA;AAED,eAAO,MAAM,cAAc,GAAI,KAAK,MAAM,KAAG,MAG5C,CAAA;AAED,KAAK,oBAAoB,CAAC,CAAC,IAAI;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;CAC/C,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,CAAC,EAAE,SAAS,oBAAoB,CAAC,CAAC,CAAC,KAAG,MAYnE,CAAA"}
|
package/dist/src/format.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export const formatHeader = (label, options) => {
|
|
2
2
|
const { total, count, limit } = options;
|
|
3
3
|
const offset = options.offset ?? 0;
|
|
4
|
-
if (count === 0)
|
|
4
|
+
if (count === 0)
|
|
5
5
|
return label + ' (0 results)';
|
|
6
|
-
}
|
|
7
6
|
const start = offset + 1;
|
|
8
7
|
const end = offset + count;
|
|
9
8
|
const pageSize = limit ?? count;
|
|
@@ -37,9 +36,8 @@ export const formatDateTime = (raw) => {
|
|
|
37
36
|
export const formatResults = (options) => {
|
|
38
37
|
const { label, items, total, limit, offset, renderItem } = options;
|
|
39
38
|
const header = formatHeader(label, { total, count: items.length, limit, offset });
|
|
40
|
-
if (items.length === 0)
|
|
39
|
+
if (items.length === 0)
|
|
41
40
|
return header;
|
|
42
|
-
}
|
|
43
41
|
const body = items
|
|
44
42
|
.map((item, i) => renderItem(item, i))
|
|
45
43
|
.join('\n\n');
|
package/dist/src/format.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.js","sourceRoot":"","sources":["../../src/format.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAa,EAAE,OAA0B,EAAU,EAAE;IAChF,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,OAAO,CAAA;IACvC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,CAAC,CAAA;IAElC,IAAI,KAAK,KAAK,CAAC
|
|
1
|
+
{"version":3,"file":"format.js","sourceRoot":"","sources":["../../src/format.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAa,EAAE,OAA0B,EAAU,EAAE;IAChF,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,OAAO,CAAA;IACvC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,CAAC,CAAA;IAElC,IAAI,KAAK,KAAK,CAAC;QAAE,OAAO,KAAK,GAAG,cAAc,CAAA;IAE9C,MAAM,KAAK,GAAG,MAAM,GAAG,CAAC,CAAA;IACxB,MAAM,GAAG,GAAG,MAAM,GAAG,KAAK,CAAA;IAC1B,MAAM,QAAQ,GAAG,KAAK,IAAI,KAAK,CAAA;IAC/B,MAAM,IAAI,GAAG,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA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AE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAA;IAElE,MAAM,MAAM,GAAG,YAAY,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAA;IAEjF,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,MAAM,CAAA;IAErC,MAAM,IAAI,GAAG,KAAK;SACf,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;SACrC,IAAI,CAAC,MAAM,CAAC,CAAA;IAEf,OAAO,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;AAC/B,CAAC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type SearchResult = {
|
|
2
|
+
title: string;
|
|
3
|
+
url: string;
|
|
4
|
+
abstract: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const makeDom: (html: string, url: string) => Document;
|
|
7
|
+
export declare const fetchHtml: (url: string, userAgent: string) => Promise<string>;
|
|
8
|
+
//# sourceMappingURL=html.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../src/html.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,OAAO,GAAI,MAAM,MAAM,EAAE,KAAK,MAAM,KAAG,QAOnD,CAAA;AAED,eAAO,MAAM,SAAS,GAAU,KAAK,MAAM,EAAE,WAAW,MAAM,KAAG,OAAO,CAAC,MAAM,CAoB9E,CAAA"}
|
package/dist/src/html.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { JSDOM, VirtualConsole } from 'jsdom';
|
|
2
|
+
import { baseHeaders, BlockedError } from "./strategies.js";
|
|
3
|
+
export const makeDom = (html, url) => {
|
|
4
|
+
const virtualConsole = new VirtualConsole();
|
|
5
|
+
virtualConsole.on('jsdomError', () => {
|
|
6
|
+
// Silently ignore JSDOM errors
|
|
7
|
+
});
|
|
8
|
+
return new JSDOM(html, { url, virtualConsole }).window.document;
|
|
9
|
+
};
|
|
10
|
+
export const fetchHtml = async (url, userAgent) => {
|
|
11
|
+
const res = await fetch(url, { headers: baseHeaders(userAgent) });
|
|
12
|
+
// A bare status code reads as a transient fault and invites a retry.
|
|
13
|
+
if (res.status === 403 || res.status === 429) {
|
|
14
|
+
const body = await res.text().catch(() => '');
|
|
15
|
+
// Matches the status heading these pages repeat before the useful sentence.
|
|
16
|
+
const reason = body
|
|
17
|
+
.replace(/<[^>]+>/g, ' ')
|
|
18
|
+
.replace(/\s+/g, ' ')
|
|
19
|
+
.replace(/\b\d{3}\s*-?\s*(Forbidden|Too Many Requests)\b/gi, '')
|
|
20
|
+
.trim()
|
|
21
|
+
.slice(0, 140);
|
|
22
|
+
throw new BlockedError(new URL(url).hostname + (reason ? ' — ' + reason : ''));
|
|
23
|
+
}
|
|
24
|
+
if (!res.ok)
|
|
25
|
+
throw new Error(res.status + ' ' + res.statusText);
|
|
26
|
+
return res.text();
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=html.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html.js","sourceRoot":"","sources":["../../src/html.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAQ3D,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,IAAY,EAAE,GAAW,EAAY,EAAE;IAC7D,MAAM,cAAc,GAAG,IAAI,cAAc,EAAE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AAA;AACnB,CAAC,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type
|
|
1
|
+
import type { Plugin } from '@opencode/plugin';
|
|
2
|
+
import type * as Tool from '@opencode/plugin/promise/tool';
|
|
3
3
|
type SendResultOptions = {
|
|
4
|
-
|
|
5
|
-
sessionID:
|
|
4
|
+
context: Plugin.Context;
|
|
5
|
+
sessionID: Tool.ToolContext['sessionID'];
|
|
6
6
|
text: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const sendResult: (options: SendResultOptions) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notify.d.ts","sourceRoot":"","sources":["../../../src/opencode/notify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"notify.d.ts","sourceRoot":"","sources":["../../../src/opencode/notify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,KAAK,KAAK,IAAI,MAAM,+BAA+B,CAAA;AAE1D,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,MAAM,CAAC,OAAO,CAAA;IACvB,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,CAAA;IACxC,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,eAAO,MAAM,UAAU,GAAU,SAAS,iBAAiB,KAAG,OAAO,CAAC,IAAI,CAMzE,CAAA"}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
export const sendResult = async (options) => {
|
|
2
|
-
await options.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
parts: [{
|
|
7
|
-
type: 'text',
|
|
8
|
-
text: options.text,
|
|
9
|
-
}],
|
|
10
|
-
},
|
|
2
|
+
await options.context.session.synthetic({
|
|
3
|
+
sessionID: options.sessionID,
|
|
4
|
+
text: options.text,
|
|
5
|
+
description: 'Search results',
|
|
11
6
|
});
|
|
12
7
|
};
|
|
13
8
|
//# sourceMappingURL=notify.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notify.js","sourceRoot":"","sources":["../../../src/opencode/notify.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notify.js","sourceRoot":"","sources":["../../../src/opencode/notify.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,EAAE,OAA0B,EAAiB,EAAE;IAC5E,MAAM,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;QACtC,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,WAAW,EAAE,gBAAgB;KAC9B,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-results.d.ts","sourceRoot":"","sources":["../../src/parse-results.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,GAAI,KAAK,QAAQ,KAAG,
|
|
1
|
+
{"version":3,"file":"parse-results.d.ts","sourceRoot":"","sources":["../../src/parse-results.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,GAAI,KAAK,QAAQ,KAAG,MAqB5C,CAAA"}
|
|
@@ -3,9 +3,8 @@ export const parseResults = (doc) => {
|
|
|
3
3
|
const snippets = doc.querySelectorAll('.result__snippet');
|
|
4
4
|
const lines = links.flatMap((link, i) => {
|
|
5
5
|
const title = link.textContent;
|
|
6
|
-
if (!title)
|
|
6
|
+
if (!title)
|
|
7
7
|
return [];
|
|
8
|
-
}
|
|
9
8
|
const href = link.getAttribute('href');
|
|
10
9
|
const snippet = snippets[i];
|
|
11
10
|
const text = snippet ? snippet.textContent : null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-results.js","sourceRoot":"","sources":["../../src/parse-results.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM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C9B,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAC9B,EAAE;SACH,CAAA;IACH,CAAC,CAAC,CAAA;IAEF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAA;AAChC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brave-search.d.ts","sourceRoot":"","sources":["../../../src/providers/brave-search.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AASlE,MAAM,MAAM,WAAW,GAAG,YAAY,CAAA;AAEtC,eAAO,MAAM,WAAW,GAAU,OAAO,MAAM,KAAG,OAAO,CAAC,WAAW,EAAE,CA0BtE,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as cache from "../cache.js";
|
|
2
|
+
import { fetchHtml, makeDom } from "../html.js";
|
|
3
|
+
import { detectBlock, nextUserAgent } from "../strategies.js";
|
|
4
|
+
const BRAVE_URL = 'https://search.brave.com/search';
|
|
5
|
+
// A challenge returns HTTP 200, so without this a block reads as an empty result set.
|
|
6
|
+
// Only phrases unique to it: a bare 'captcha' also matches normal results pages.
|
|
7
|
+
const BLOCK_MARKERS = ['Verifying you are human', 'challenge-error'];
|
|
8
|
+
export const braveSearch = async (query) => {
|
|
9
|
+
const cacheKey = 'brave:' + query;
|
|
10
|
+
const cached = await cache.get(cacheKey);
|
|
11
|
+
if (cached)
|
|
12
|
+
return cached;
|
|
13
|
+
const html = await fetchHtml(BRAVE_URL + '?q=' + encodeURIComponent(query), nextUserAgent());
|
|
14
|
+
detectBlock('Brave', html, BLOCK_MARKERS);
|
|
15
|
+
const doc = makeDom(html, BRAVE_URL);
|
|
16
|
+
const containers = doc.querySelectorAll('div.snippet[data-type="web"]');
|
|
17
|
+
const results = [];
|
|
18
|
+
for (const container of containers) {
|
|
19
|
+
const anchor = container.querySelector('a');
|
|
20
|
+
const title = container.querySelector('.title')?.textContent?.trim() ?? '';
|
|
21
|
+
const url = anchor?.getAttribute('href') ?? '';
|
|
22
|
+
const abstract = container.querySelector('.generic-snippet .content')?.textContent?.trim() ?? '';
|
|
23
|
+
if (title && url.startsWith('http'))
|
|
24
|
+
results.push({ title, url, abstract });
|
|
25
|
+
}
|
|
26
|
+
await cache.set(cacheKey, results);
|
|
27
|
+
return results;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=brave-search.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brave-search.js","sourceRoot":"","sources":["../../../src/providers/brave-search.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAqB,MAAM,YAAY,CAAA;AAClE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,SAAS,GAAG,iCAAiC,CAAA;AAEnD,sFAAsF;AACtF,iFAAiF;AACjF,MAAM,aAAa,GAAG,CAAC,yBAAyB,EAAE,iBAAiB,CAAC,CAAA;AAIpE,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,EAAE,KAAa,EAA0B,EAAE;IACzE,MAAM,QAAQ,GAAG,QAAQ,GAAG,KAAK,CAAA;IAEjC,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,GAAG,CAAgB,QAAQ,CAAC,CAAA;IACvD,IAAI,MAAM;QAAE,OAAO,MAAM,CAAA;IAEzB,MAAM,IAAI,GAAG,MAAM,SAAS,CAAC,SAAS,GAAG,KAAK,GAAG,kBAAkB,CAAC,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC,CAAA;IAC5F,WAAW,CAAC,OAAO,EAAE,IAAI,EAAE,aAAa,CAAC,CAAA;IAEzC,MAAM,GAAG,GAAG,OAAO,CAAC,IAAI,EAAE,SAA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,EAAE,MAAM,CAAA;CACf,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,eAAO,MAAM,UAAU,GAAU,SAAS,iBAAiB,KAAG,OAAO,CAAC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"bsky-search.d.ts","sourceRoot":"","sources":["../../../src/providers/bsky-search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAgBvB,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;iBAQd,CAAA;AAQF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAA;AAEjD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,eAAO,MAAM,UAAU,GAAU,SAAS,iBAAiB,KAAG,OAAO,CAAC,gBAAgB,CAyCrF,CAAA"}
|
|
@@ -32,16 +32,13 @@ export const bskySearch = async (options) => {
|
|
|
32
32
|
options.limit ?? 25,
|
|
33
33
|
].join(':');
|
|
34
34
|
const cached = await cache.get(cacheKey);
|
|
35
|
-
if (cached && cached.posts && cached.posts.length > 0)
|
|
35
|
+
if (cached && cached.posts && cached.posts.length > 0)
|
|
36
36
|
return cached;
|
|
37
|
-
}
|
|
38
37
|
const params = new URLSearchParams({ q: options.query });
|
|
39
|
-
if (options.sort)
|
|
38
|
+
if (options.sort)
|
|
40
39
|
params.set('sort', options.sort);
|
|
41
|
-
|
|
42
|
-
if (options.limit) {
|
|
40
|
+
if (options.limit)
|
|
43
41
|
params.set('limit', String(options.limit));
|
|
44
|
-
}
|
|
45
42
|
const url = BSKY_API + '?' + params.toString();
|
|
46
43
|
const res = await fetch(url);
|
|
47
44
|
if (!res.ok) {
|
|
@@ -57,9 +54,8 @@ export const bskySearch = async (options) => {
|
|
|
57
54
|
const hitsTotal = response.hitsTotal ?? posts.length;
|
|
58
55
|
const cursor = response.cursor ?? '';
|
|
59
56
|
const result = { posts, hitsTotal, cursor };
|
|
60
|
-
if (posts.length > 0)
|
|
57
|
+
if (posts.length > 0)
|
|
61
58
|
await cache.set(cacheKey, result);
|
|
62
|
-
}
|
|
63
59
|
return result;
|
|
64
60
|
};
|
|
65
61
|
//# sourceMappingURL=bsky-search.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bsky-search.js","sourceRoot":"","sources":["../../../src/providers/bsky-search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,KAAK,MAAM,aAAa,CAAA;AAEpC,MAAM,QAAQ,GAAG,qDAAqD,CAAA;AAEtE,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC3B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;CACpC,CAAC,CAAA;AAEF,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;CAClC,CAAC,CAAA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G,IAAI,CAAC,CAAA;IACvE,CAAC;IAED,MAAM,IAAI,GAAY,MAAM,GAAG,CAAC,IAAI,EAAE,CAAA;IACtC,MAAM,QAAQ,GAAG,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IAE3C,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QAC3C,MAAM,MAAM,GAAG,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;QACxC,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;IAC5C,CAAC,CAAC,CAAA;IAEF,MAAM,SAAS,GAAG,QAAQ,CAAC,SAAS,IAAI,KAAK,CAAC,MAAM,CAAA;IACpD,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,IAAI,EAAE,CAAA;IAEpC,MAAM,MAAM,GAAqB,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,CAAA;IAE7D,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;QAAE,MAAM,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;IAEvD,OAAO,MAAM,CAAA;AACf,CAAC,CAAA"}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type DdgResult = {
|
|
2
|
+
title: string;
|
|
3
|
+
url: string;
|
|
4
|
+
abstract: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const ddgSearch: (query: string) => Promise<DdgResult[]>;
|
|
2
7
|
//# sourceMappingURL=ddg-search.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ddg-search.d.ts","sourceRoot":"","sources":["../../../src/providers/ddg-search.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ddg-search.d.ts","sourceRoot":"","sources":["../../../src/providers/ddg-search.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAqFD,eAAO,MAAM,SAAS,GAAU,OAAO,MAAM,KAAG,OAAO,CAAC,SAAS,EAAE,CAiBlE,CAAA"}
|