Skip to content

Plugin version mismatch: package.json shows 0.8.1 but dist/index.js shows 0.7.0 #83

@tryweb

Description

@tryweb

Issue Description

The published npm package lancedb-opencode-pro@0.8.1 has a version mismatch between the package metadata and the actual compiled code.

Observed Behavior

  • package.json version field: 0.8.1
  • dist/index.js hardcoded PLUGIN_VERSION: 0.7.0
  • When the plugin initializes, it logs: Plugin v0.7.0 initialized

Expected Behavior

The version reported by the plugin should match the published package version (0.8.1).

Technical Details

# package.json
\"version\": \"0.8.1\"

# dist/index.js
const PLUGIN_VERSION = \"0.7.0\";
log(\"info\", `Plugin v\${PLUGIN_VERSION} initialized\`);

This was discovered when running the plugin in a Docker container environment (codeforge/ai-dev) with:

  • Bun runtime
  • @lancedb/lancedb 0.27.2
  • opencode 1.4.3

Impact

While the plugin functionality appears to work correctly, this version mismatch could cause confusion during debugging and version tracking.

Environment

  • OS: Linux (Docker container)
  • Runtime: Bun 1.3.12
  • Node: N/A (Bun only)
  • Package: lancedb-opencode-pro@0.8.1

Please verify the build/publish process to ensure the dist files are correctly updated before publishing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions