opencode-moli 2.1.1 → 3.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/README.md +16 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,7 +28,21 @@ The build copies the shared `lib/moli.js` and `lib/install.js` into
|
|
|
28
28
|
|
|
29
29
|
## Install
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
Install the published package with OpenCode's package manager:
|
|
32
|
+
|
|
33
|
+
```powershell
|
|
34
|
+
opencode plugin add opencode-moli@3.1.0
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Equivalently, add the package to `opencode.json` or `opencode.jsonc`:
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
{
|
|
41
|
+
"plugins": ["opencode-moli@3.1.0"]
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
For local development, add the plugin directory instead:
|
|
32
46
|
|
|
33
47
|
```json
|
|
34
48
|
{
|
|
@@ -36,8 +50,7 @@ Add the plugin directory to `opencode.json` or `opencode.jsonc`:
|
|
|
36
50
|
}
|
|
37
51
|
```
|
|
38
52
|
|
|
39
|
-
Restart OpenCode
|
|
40
|
-
the entry can be the package name instead of a path.
|
|
53
|
+
Restart OpenCode if changing a local plugin does not trigger its automatic reload.
|
|
41
54
|
|
|
42
55
|
## Configuration
|
|
43
56
|
|
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import { Plugin } from '@opencode/plugin'
|
|
|
16
16
|
import { MANUAL_INSTALL, installMoli } from './lib/install.js'
|
|
17
17
|
import { findMoli, moliCandidates, probe, runFetch } from './lib/moli.js'
|
|
18
18
|
|
|
19
|
-
const SERVER_VERSION = '
|
|
19
|
+
const SERVER_VERSION = '3.1.0'
|
|
20
20
|
const DEFAULT_SEARCH_URLS = [
|
|
21
21
|
'https://www.bing.com/search?q={query}',
|
|
22
22
|
'https://html.duckduckgo.com/html/?q={query}',
|
package/package.json
CHANGED