opencode-search 1.0.0-next.2 → 1.0.0-next.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 +7 -7
- package/REMOVED.md +3 -3
- package/dist/package.json +1 -1
- package/dist/search.js +1 -1
- package/dist/src/search.js +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ Restart OpenCode. The plugin will be installed automatically.
|
|
|
40
40
|
|
|
41
41
|
## Tools
|
|
42
42
|
|
|
43
|
-
###
|
|
43
|
+
### ddg_search
|
|
44
44
|
|
|
45
45
|
Search the web using DuckDuckGo. Returns structured results with title, URL, and snippet.
|
|
46
46
|
|
|
@@ -51,7 +51,7 @@ Search the web using DuckDuckGo. Returns structured results with title, URL, and
|
|
|
51
51
|
Uses DuckDuckGo's HTML endpoint with POST form parameters to avoid CAPTCHAs.
|
|
52
52
|
Results are parsed from the HTML response into structured title/URL/abstract triples.
|
|
53
53
|
|
|
54
|
-
###
|
|
54
|
+
### brave_search
|
|
55
55
|
|
|
56
56
|
Search the web using Brave Search. Returns structured results with title, URL, and snippet.
|
|
57
57
|
|
|
@@ -61,7 +61,7 @@ Search the web using Brave Search. Returns structured results with title, URL, a
|
|
|
61
61
|
|
|
62
62
|
Brave serves server-rendered HTML, so it is the most reliable general web provider here.
|
|
63
63
|
|
|
64
|
-
###
|
|
64
|
+
### gnews_search
|
|
65
65
|
|
|
66
66
|
Search Google News for recent articles. Returns headline, publisher, and publication date.
|
|
67
67
|
|
|
@@ -71,7 +71,7 @@ Search Google News for recent articles. Returns headline, publisher, and publica
|
|
|
71
71
|
|
|
72
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.
|
|
73
73
|
|
|
74
|
-
###
|
|
74
|
+
### bsky_search
|
|
75
75
|
|
|
76
76
|
Search Bluesky posts via the AT Protocol. Returns posts with author handle, text, and engagement counts (likes, reposts, replies).
|
|
77
77
|
|
|
@@ -81,7 +81,7 @@ Search Bluesky posts via the AT Protocol. Returns posts with author handle, text
|
|
|
81
81
|
| `limit` | number | no | Number of results to return |
|
|
82
82
|
| `sort` | string | no | Sort order: `top` or `latest` |
|
|
83
83
|
|
|
84
|
-
###
|
|
84
|
+
### standard_search
|
|
85
85
|
|
|
86
86
|
Search [standard.site](https://standard.site) document records on the AT Protocol. Returns blog posts and articles published to the ATmosphere with title, URL, date, and snippet.
|
|
87
87
|
|
|
@@ -95,7 +95,7 @@ standard.site is a publishing platform built on the AT Protocol where content is
|
|
|
95
95
|
|
|
96
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
97
|
|
|
98
|
-
###
|
|
98
|
+
### wiki_search
|
|
99
99
|
|
|
100
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.
|
|
101
101
|
|
|
@@ -104,7 +104,7 @@ Search Wikipedia articles using the MediaWiki REST API. Returns structured resul
|
|
|
104
104
|
| `query` | string | yes | |
|
|
105
105
|
| `limit` | number | no | Number of results (1-100) |
|
|
106
106
|
|
|
107
|
-
###
|
|
107
|
+
### mdn_search
|
|
108
108
|
|
|
109
109
|
Search MDN Web Docs. Returns documentation pages for web technologies with title, URL, and summary. No API key required.
|
|
110
110
|
|
package/REMOVED.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Removed providers
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## ggl_search — Google web search
|
|
4
4
|
|
|
5
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
6
|
|
|
@@ -16,9 +16,9 @@ The gate is applied before the page is built, so TLS fingerprinting is not the v
|
|
|
16
16
|
|
|
17
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
18
|
|
|
19
|
-
Use `
|
|
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
20
|
|
|
21
|
-
##
|
|
21
|
+
## mojeek_search — Mojeek
|
|
22
22
|
|
|
23
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
24
|
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-search",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.4",
|
|
4
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",
|
package/dist/search.js
CHANGED
|
@@ -8,7 +8,7 @@ if (error || typeof plugin.Plugin?.define !== 'function') {
|
|
|
8
8
|
throw new Error(V1_MESSAGE, { cause: error ?? new Error('Plugin.define is not exported') });
|
|
9
9
|
}
|
|
10
10
|
export default plugin.Plugin.define({
|
|
11
|
-
id: '
|
|
11
|
+
id: 'opencode-search',
|
|
12
12
|
setup: async (ctx) => {
|
|
13
13
|
await ctx.tool.transform((tools) => {
|
|
14
14
|
for (const definition of createSearchTools(ctx)) {
|
package/dist/src/search.js
CHANGED
|
@@ -38,7 +38,7 @@ const queryArg = {
|
|
|
38
38
|
additionalProperties: false,
|
|
39
39
|
};
|
|
40
40
|
export const createDdgSearchTool = (context) => ({
|
|
41
|
-
name: '
|
|
41
|
+
name: 'ddg_search',
|
|
42
42
|
description: 'Search DuckDuckGo and return results as extracted text content',
|
|
43
43
|
input: queryArg,
|
|
44
44
|
async execute(input, ctx) {
|
|
@@ -57,7 +57,7 @@ export const createDdgSearchTool = (context) => ({
|
|
|
57
57
|
},
|
|
58
58
|
});
|
|
59
59
|
export const createBraveSearchTool = (context) => ({
|
|
60
|
-
name: '
|
|
60
|
+
name: 'brave_search',
|
|
61
61
|
description: 'Search the web via Brave Search, returning titles, URLs, and snippets.',
|
|
62
62
|
input: queryArg,
|
|
63
63
|
async execute(input, ctx) {
|
|
@@ -76,7 +76,7 @@ export const createBraveSearchTool = (context) => ({
|
|
|
76
76
|
},
|
|
77
77
|
});
|
|
78
78
|
export const createBskySearchTool = (context) => ({
|
|
79
|
-
name: '
|
|
79
|
+
name: 'bsky_search',
|
|
80
80
|
description: [
|
|
81
81
|
'Search Bluesky posts via the AT Protocol.',
|
|
82
82
|
'Returns posts with author, text, and engagement counts.',
|
|
@@ -111,7 +111,7 @@ export const createBskySearchTool = (context) => ({
|
|
|
111
111
|
},
|
|
112
112
|
});
|
|
113
113
|
export const createStandardSearchTool = (context) => ({
|
|
114
|
-
name: '
|
|
114
|
+
name: 'standard_search',
|
|
115
115
|
description: [
|
|
116
116
|
'Search site.standard.document records on the AT Protocol.',
|
|
117
117
|
'Returns blog posts and articles from the ATmosphere.',
|
|
@@ -147,7 +147,7 @@ export const createStandardSearchTool = (context) => ({
|
|
|
147
147
|
},
|
|
148
148
|
});
|
|
149
149
|
export const createWikiSearchTool = (context) => ({
|
|
150
|
-
name: '
|
|
150
|
+
name: 'wiki_search',
|
|
151
151
|
description: 'Search Wikipedia articles. Returns page titles, descriptions, and excerpts.',
|
|
152
152
|
input: {
|
|
153
153
|
type: 'object',
|
|
@@ -177,7 +177,7 @@ export const createWikiSearchTool = (context) => ({
|
|
|
177
177
|
},
|
|
178
178
|
});
|
|
179
179
|
export const createGnewsSearchTool = (context) => ({
|
|
180
|
-
name: '
|
|
180
|
+
name: 'gnews_search',
|
|
181
181
|
description: [
|
|
182
182
|
'Search Google News for recent articles, returning headlines, publishers, and dates.',
|
|
183
183
|
'News and tech media only — not general web search, and not documentation.',
|
|
@@ -200,7 +200,7 @@ export const createGnewsSearchTool = (context) => ({
|
|
|
200
200
|
},
|
|
201
201
|
});
|
|
202
202
|
export const createMdnSearchTool = (context) => ({
|
|
203
|
-
name: '
|
|
203
|
+
name: 'mdn_search',
|
|
204
204
|
description: 'Search MDN Web Docs. Returns documentation pages for web technologies.',
|
|
205
205
|
input: {
|
|
206
206
|
type: 'object',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-search",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.4",
|
|
4
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",
|