Skip to content

Commit b1c0142

Browse files
committed
chore(release): publish 0.3.2
1 parent 5157fc2 commit b1c0142

6 files changed

Lines changed: 19 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.3.2
4+
5+
- export the plugin through a named `plugin` entrypoint as well as the default export so npm-based OpenCode loading can register it correctly
6+
37
## 0.3.1
48

59
- add a `planner_config` diagnostic tool and `/planner-config` command for inspecting planner runtime and editor configuration

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ If you want reproducible installs instead of automatic plugin refreshes, pin an
5656

5757
```json
5858
{
59-
"plugin": ["opencode-planner@0.3.1"]
59+
"plugin": ["opencode-planner@0.3.2"]
6060
}
6161
```
6262

@@ -226,7 +226,7 @@ It starts OpenCode with an isolated temporary home/config, keeps the local repo
226226
1. Update `CHANGELOG.md`.
227227
2. Bump the version in `package.json`.
228228
3. Commit the release.
229-
4. Create and push a git tag like `v0.3.1` for the release.
229+
4. Create and push a git tag like `v0.3.2` for the release.
230230
5. Let GitHub Actions publish to npm `latest`.
231231
6. Publish matching GitHub release notes.
232232

@@ -243,7 +243,7 @@ Configure npm Trusted Publishing for this package:
243243
- Repository: `opencode-planner`
244244
- Workflow filename: `release.yml`
245245

246-
The release workflow publishes stable tags like `v0.3.1` to npm `latest` and creates matching GitHub release notes automatically.
246+
The release workflow publishes stable tags like `v0.3.2` to npm `latest` and creates matching GitHub release notes automatically.
247247

248248
Trusted Publishing uses GitHub OIDC and does not require an `NPM_TOKEN` secret for publishing.
249249

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ function mode(input = {}) {
400400
}
401401
}
402402

403-
export default async function plannerPlugin() {
403+
export const plugin = async function plannerPlugin() {
404404
const seen = new Set()
405405
const submittedPlans = new Map()
406406

@@ -477,3 +477,5 @@ export default async function plannerPlugin() {
477477
},
478478
}
479479
}
480+
481+
export default plugin

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "opencode-planner",
3-
"version": "0.3.1",
3+
"version": "0.3.2",
44
"description": "Experimental OpenCode plugin that adds a dedicated planning agent with read-only planning constraints.",
55
"type": "module",
6+
"main": "./index.js",
67
"author": "Tim Richardson",
78
"exports": {
89
".": "./index.js"

test/plugin.test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ import test from "node:test"
22
import assert from "node:assert/strict"
33
import { mkdir, rm, writeFile } from "node:fs/promises"
44

5-
import plannerPlugin from "../index.js"
5+
import plannerPlugin, { plugin } from "../index.js"
6+
7+
test("package exports the plugin as both named and default exports", async () => {
8+
assert.equal(plugin, plannerPlugin)
9+
})
610

711
async function withEnv(env, fn) {
812
const previous = {

0 commit comments

Comments
 (0)