opencode-websearch-deepseek 0.1.0 → 0.1.1

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 CHANGED
@@ -18,7 +18,7 @@ source URLs it was based on.
18
18
  - **OpenCode 2.x** with the V2 plugin API (the `plugins` config field). The
19
19
  OpenCode 1.x plugin loader expects the legacy `server()` export and will not
20
20
  load this plugin.
21
- - Node.js 20+ (for `fetch`; OpenCode's runtime already provides it).
21
+ - Node.js 22.14+ (for `fetch`; OpenCode's runtime already provides it).
22
22
  - A DeepSeek API key.
23
23
 
24
24
  ## Install
@@ -88,6 +88,15 @@ can use the normal `websearch` tool without any extra configuration.
88
88
  4. The plugin returns that answer plus the de-duplicated source URLs as
89
89
  `WebSearch.Result` entries.
90
90
 
91
+ ## Releases
92
+
93
+ Releases are automated with [`semantic-release`](https://semantic-release.gitbook.io/)
94
+ from [Conventional Commits](https://www.conventionalcommits.org/) merged to
95
+ `main`: `fix:` → patch, `feat:` → minor, and breaking changes → minor while
96
+ `< 1.0.0`. It publishes to npm via trusted publishing (OIDC) with provenance,
97
+ then tags the commit and creates a GitHub Release. See
98
+ [CONTRIBUTING.md](./CONTRIBUTING.md).
99
+
91
100
  ## Development
92
101
 
93
102
  ```sh
package/dist/index.js CHANGED
@@ -225,6 +225,10 @@ export const plugin = {
225
225
  throw error;
226
226
  return "";
227
227
  });
228
+ // An abort can also arrive after the body resolves; re-check so it
229
+ // is not masked as an API error.
230
+ if (signal?.aborted)
231
+ throw signal.reason ?? new Error("The web search was aborted");
228
232
  throw new Error(`DeepSeek API error ${response.status}: ${text.slice(0, 300)}`);
229
233
  }
230
234
  const data = (await response.json());
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "opencode-websearch-deepseek",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "description": "DeepSeek-powered web search provider for OpenCode's built-in websearch tool.",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -25,7 +25,7 @@
25
25
  "search"
26
26
  ],
27
27
  "engines": {
28
- "node": ">=20"
28
+ "node": ">=22.14.0"
29
29
  },
30
30
  "main": "./dist/index.js",
31
31
  "types": "./dist/index.d.ts",
@@ -49,7 +49,10 @@
49
49
  "clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\""
50
50
  },
51
51
  "devDependencies": {
52
+ "@commitlint/cli": "^21.2.3",
53
+ "@commitlint/config-conventional": "^21.2.3",
52
54
  "@types/node": "^24.0.0",
55
+ "semantic-release": "^25.0.9",
53
56
  "typescript": "^5.8.2"
54
57
  }
55
58
  }