chore: sync version constant and bump deps#26
Open
shreybirmiwalmorph wants to merge 1 commit into
Open
Conversation
Audit fixes for staleness found at v2.0.15: - PLUGIN_VERSION in index.ts was hardcoded "2.0.0" and never tracked package.json, so the startup log and morph_edit tool metadata reported 2.0.0 on every release since 2.0.0. Synced to 2.0.15 and updated release.yml to rewrite the constant during each version bump. Build now runs after the bump (so dist ships the correct value) and the commit includes index.ts; a grep guard fails the release if the sync misses. - Dependencies were far behind: @morphllm/morphsdk 0.2.173 -> 0.2.180, and @opencode-ai/sdk + @opencode-ai/plugin -> ^1.17.7 (were ^1.2.22 and "latest", both frozen at 1.2.22 in the lockfiles). Regenerated bun.lock and package-lock.json. - README compaction note no longer pins a single OpenCode minor (1.14.x -> 1.14+). Typecheck, build, and the full 67-test suite pass on the bumped deps. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0a1051a to
340db68
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
Audit of the repo at v2.0.15 turned up several things that had drifted out of sync.
1.
PLUGIN_VERSIONwas frozen at"2.0.0"(real bug)index.tshardcodedconst PLUGIN_VERSION = "2.0.0", used in the startup log (Plugin vX loaded) andmorph_edittool metadata. The release workflow's bump step only rannpm version(package.json), so every release since 2.0.0 shipped reporting itself as 2.0.0.2.0.15.release.ymlnow rewrites the constant during the version bump viased, with agrepguard that fails the release if the sync misses. Build now runs after the bump so the publisheddistreflects the correct version, and the commit step addsindex.tsalongsidepackage.json/package-lock.json.2. Dependencies were far behind
@morphllm/morphsdk0.2.1730.2.180@opencode-ai/sdk^1.2.22(lock 1.2.22)^1.17.7@opencode-ai/plugin"latest"(lock 1.2.22)^1.17.7OpenCode was ~15 minor versions behind (the lockfiles froze 1.2.22). Regenerated both
bun.lockandpackage-lock.json.3. README
Compaction note no longer pins a single OpenCode minor (
1.14.x→1.14+).Validation
bun run typecheck,bun run build, and the full 67-test suite all pass on the bumped dependencies. Verified the builtdist/index.jsnow reports2.0.15, and simulated the workflow'ssedto confirm a future bump rewrites the constant correctly.@opencode-ai/sdk/plugin1.2 → 1.17 jump is the one risk area. It's type-clean and build/test-clean, but the test suite skips live API calls and doesn't exercise the OpenCode hooks at runtime — a quick smoke test against a live OpenCode 1.17 session before merging is worth it. Happy to split the dep bump into its own PR if you'd rather land the version fix first.mainauto-publishes to npm (release workflow), so this is intentionally a PR rather than a direct push.morphsdk0.2.180 pulls in new OpenTelemetry/Traceloop transitive deps (one blockedprotobufjspostinstall under bun — doesn't affect build/test/CI).🤖 Generated with Claude Code