opencode-yul 0.0.12 → 0.0.14

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 ADDED
@@ -0,0 +1,38 @@
1
+ # opencode-yul
2
+
3
+ Forces LLMs to use the latest release of dependencies instead of them
4
+ writing the outdated version from training data.
5
+
6
+ This outdated version could be a security vulnerability, a bug, or just a
7
+ missing feature.
8
+ Thus, this plugin for OpenCode solves the problem by blocking the write/edit
9
+ tool call if it adds a dependency older than the latest version.
10
+
11
+ Supported ecosystems: Maven Central, PyPI, npm, GitHub Actions, Go modules, crates.io.
12
+
13
+ ## Install
14
+
15
+ Add it to the `plugin` array in an `opencode.json`/`opencode.jsonc`:
16
+
17
+ - **Project scope** (this project only): put it in `opencode.json`/`opencode.jsonc` at the project root.
18
+ - **User scope** (every project you open): put it in `~/.config/opencode/opencode.json`/`opencode.jsonc` instead.
19
+
20
+ ```json
21
+ {
22
+ "plugin": ["opencode-yul"]
23
+ }
24
+ ```
25
+
26
+ ## Update
27
+
28
+ OpenCode is supposed to re-resolve `@latest` and reinstall on its own, see [anomalyco/opencode#16998](https://github.com/anomalyco/opencode/pull/16998).
29
+ However, if you suspect you're stuck on an old version, force it yourself:
30
+
31
+ ```sh
32
+ rm -rf ~/.cache/opencode/packages/opencode-yul@latest
33
+ ```
34
+
35
+ Then start a new OpenCode session.
36
+ It reinstalls from scratch on next use.
37
+
38
+
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ import { join } from "node:path";
18
18
  // Bumped in lockstep with .claude-plugin/plugin.json and this package's own
19
19
  // package.json version by the release workflow — it's what pins which yul
20
20
  // binary this plugin downloads and runs.
21
- const YUL_VERSION = "0.0.12";
21
+ const YUL_VERSION = "0.0.14";
22
22
  const CACHE_ROOT = join(process.env.XDG_CACHE_HOME ?? join(homedir(), ".cache"), "yul");
23
23
  const CACHE_DIR = join(CACHE_ROOT, `v${YUL_VERSION}`);
24
24
  const BIN_PATH = join(CACHE_DIR, "yul");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "opencode-yul",
4
- "version": "0.0.12",
4
+ "version": "0.0.14",
5
5
  "description": "Forces models to use the latest versions of dependencies instead of outdated versions from model training data.",
6
6
  "repository": {
7
7
  "type": "git",