Skip to content

chore: sync version constant and bump deps#26

Open
shreybirmiwalmorph wants to merge 1 commit into
mainfrom
chore/sync-version-changelog-deps
Open

chore: sync version constant and bump deps#26
shreybirmiwalmorph wants to merge 1 commit into
mainfrom
chore/sync-version-changelog-deps

Conversation

@shreybirmiwalmorph

@shreybirmiwalmorph shreybirmiwalmorph commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

What & why

Audit of the repo at v2.0.15 turned up several things that had drifted out of sync.

1. PLUGIN_VERSION was frozen at "2.0.0" (real bug)

index.ts hardcoded const PLUGIN_VERSION = "2.0.0", used in the startup log (Plugin vX loaded) and morph_edit tool metadata. The release workflow's bump step only ran npm version (package.json), so every release since 2.0.0 shipped reporting itself as 2.0.0.

  • Synced the constant to 2.0.15.
  • release.yml now rewrites the constant during the version bump via sed, with a grep guard that fails the release if the sync misses. Build now runs after the bump so the published dist reflects the correct version, and the commit step adds index.ts alongside package.json/package-lock.json.

2. Dependencies were far behind

Package Before After
@morphllm/morphsdk 0.2.173 0.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.7

OpenCode was ~15 minor versions behind (the lockfiles froze 1.2.22). Regenerated both bun.lock and package-lock.json.

3. README

Compaction note no longer pins a single OpenCode minor (1.14.x1.14+).

Validation

bun run typecheck, bun run build, and the full 67-test suite all pass on the bumped dependencies. Verified the built dist/index.js now reports 2.0.15, and simulated the workflow's sed to confirm a future bump rewrites the constant correctly.

⚠️ Note for reviewer

  • The @opencode-ai/sdk/plugin 1.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.
  • Merging to main auto-publishes to npm (release workflow), so this is intentionally a PR rather than a direct push.
  • morphsdk 0.2.180 pulls in new OpenTelemetry/Traceloop transitive deps (one blocked protobufjs postinstall under bun — doesn't affect build/test/CI).

🤖 Generated with Claude Code

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>
@shreybirmiwalmorph shreybirmiwalmorph force-pushed the chore/sync-version-changelog-deps branch from 0a1051a to 340db68 Compare June 17, 2026 19:50
@shreybirmiwalmorph shreybirmiwalmorph changed the title chore: sync version constant, backfill changelog, bump deps chore: sync version constant and bump deps Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant