opencode-context 1.0.1 → 1.0.3

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
@@ -4,6 +4,27 @@ Smart file finder for codebases with relevance scoring. Includes an OpenCode plu
4
4
 
5
5
  ## Installation
6
6
 
7
+ ### For Humans
8
+
9
+ Copy and paste this to your LLM agent (Claude Code, Cursor, etc.):
10
+
11
+ ```
12
+ Install opencode-context by following the instructions here:
13
+ https://raw.githubusercontent.com/Lukasdias/opencontext/refs/heads/main/README.md
14
+ ```
15
+
16
+ Or read the installation guide below.
17
+
18
+ ### For LLM Agents
19
+
20
+ Fetch and follow the installation:
21
+
22
+ ```bash
23
+ curl -s https://raw.githubusercontent.com/Lukasdias/opencontext/refs/heads/main/README.md
24
+ ```
25
+
26
+ ---
27
+
7
28
  ### OpenCode Plugin
8
29
 
9
30
  Add to `~/.config/opencode/opencode.json`:
@@ -60,9 +81,9 @@ find_files query="auth middleware" maxFiles=5
60
81
  ## CLI Usage
61
82
 
62
83
  ```bash
63
- opencontext --query "auth" --max-files 5
64
- opencontext --interactive
65
- opencontext -q "database" --json
84
+ opencode-context --query "auth" --max-files 5
85
+ opencode-context --interactive
86
+ opencode-context -q "database" --json
66
87
  ```
67
88
 
68
89
  ### Options
@@ -90,6 +111,16 @@ opencontext -q "database" --json
90
111
 
91
112
  No index persistence - scans fresh on each query.
92
113
 
114
+ ## Uninstallation
115
+
116
+ Remove from `~/.config/opencode/opencode.json` plugins array:
117
+
118
+ ```json
119
+ {
120
+ "plugin": []
121
+ }
122
+ ```
123
+
93
124
  ## License
94
125
 
95
126
  MIT
package/dist/index.js CHANGED
@@ -8486,4 +8486,6 @@ program2.option("-q, --query <query>", "Search query").option("-n, --max-files <
8486
8486
  process.exit(1);
8487
8487
  }
8488
8488
  });
8489
- program2.parse();
8489
+ if (__require.main == __require.module) {
8490
+ program2.parse();
8491
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-context",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Smart file finder for codebases - semantic search with confidence scoring. Also available as an OpenCode plugin.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",