@lunacode/opencode-plugin-intelligence 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 +14 -0
- package/package.json +5 -1
- package/src/leaderboard-cache.js +1 -1
package/README.md
CHANGED
|
@@ -64,6 +64,20 @@ node --test
|
|
|
64
64
|
|
|
65
65
|
When changing leaderboard fetching or parsing, also run `npm run refresh-cache`.
|
|
66
66
|
|
|
67
|
+
## Publishing
|
|
68
|
+
|
|
69
|
+
GitHub Actions runs Biome and tests on branch pushes and pull requests. Pushing a `v<version>` tag runs the same checks and publishes to npm using trusted publishing. The tag must match `package.json`, for example `v0.1.0` for version `0.1.0`.
|
|
70
|
+
|
|
71
|
+
Configure a GitHub Actions trusted publisher in the npm package's settings:
|
|
72
|
+
|
|
73
|
+
- Organization or user: `SharkyRawr`
|
|
74
|
+
- Repository: `opencode-plugin-intelligence`
|
|
75
|
+
- Workflow filename: `publish.yml`
|
|
76
|
+
- Environment name: leave blank
|
|
77
|
+
- Allow direct publishing with `npm publish`
|
|
78
|
+
|
|
79
|
+
No npm token secret is required. If the package does not exist yet, publish its first version manually before configuring the trusted publisher. Use a new version for the first tag-triggered publish; npm cannot overwrite an existing version. See [npm's trusted publishing documentation](https://docs.npmjs.com/trusted-publishers) for setup details.
|
|
80
|
+
|
|
67
81
|
## License
|
|
68
82
|
|
|
69
83
|
Licensed under [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/): attribution, noncommercial use, and share-alike are required. See [LICENSE](LICENSE) for the full terms.
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunacode/opencode-plugin-intelligence",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"license": "CC-BY-NC-SA-4.0",
|
|
5
5
|
"description": "Annotate OpenCode model names with the Artificial Analysis Intelligence Index.",
|
|
6
6
|
"type": "module",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/SharkyRawr/opencode-plugin-intelligence.git"
|
|
10
|
+
},
|
|
7
11
|
"publishConfig": {
|
|
8
12
|
"access": "public"
|
|
9
13
|
},
|
package/src/leaderboard-cache.js
CHANGED
|
@@ -32,7 +32,7 @@ async function fetchLeaderboardHtml() {
|
|
|
32
32
|
response = await fetch(LEADERBOARD_URL, {
|
|
33
33
|
signal: controller.signal,
|
|
34
34
|
headers: {
|
|
35
|
-
"user-agent": "opencode-plugin-intelligence/0.1.
|
|
35
|
+
"user-agent": "opencode-plugin-intelligence/0.1.1",
|
|
36
36
|
},
|
|
37
37
|
});
|
|
38
38
|
} finally {
|