anomalyco / anomalyco/opencode

v2: Plugin from git url - NPM + BUN conflict error

Open
#49,785 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

2.0
Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

using, as an example, in opencode.jsonc :

{
  "$schema": "https://opencode.ai/config.json",
  "plugins": [
    {
      "package": "git+https://github.com/tickernelz/opencode-mem.git#opencode-api-v2",
      "options": { }
    }
  ]
}

I get an error from NPM being in conflict with BUN (it seems to me)

NpmInstallFailedError: 
    at catch (B:/~BUN/root/chunk-3kgbfgap.js:3:9450)
    at ~effect/Utils/internal (B:/~BUN/root/chunk-a43cxxb8.js:8:1535)
    at s (B:/~BUN/root/chunk-a43cxxb8.js:24:6055)
    at processTicksAndRejections (native:7:39)
    at Npm.reify (B:/~BUN/root/chunk-3kgbfgap.js:3:9497)
    at Npm.add (B:/~BUN/root/chunk-7n9n93n5.js:1500:8385)
    at Npm.add (definition) (B:/~BUN/root/chunk-3kgbfgap.js:3:9533)
    at PluginSupervisor.load (B:/~BUN/root/chunk-7n9n93n5.js:1500:7787)
    at PluginSupervisor.load (definition) (B:/~BUN/root/chunk-7n9n93n5.js:1500:8267)
    at PluginSupervisor.resolve (B:/~BUN/root/chunk-7n9n93n5.js:1500:9317)
    at PluginSupervisor.resolve (definition) (B:/~BUN/root/chunk-7n9n93n5.js:1500:7258)
    at PluginSupervisor.activate (B:/~BUN/root/chunk-7n9n93n5.js:1500:9652)
    at PluginSupervisor.activate (definition) (B:/~BUN/root/chunk-7n9n93n5.js:1500:9063)
    at ServerProcess.start (B:/~BUN/root/chunk-shccbgfk.js:2:6330) {
  [cause]: Error: git dep preparation failed
      at vt (B:/~BUN/root/chunk-53kf4b4q.js:8:4483)
      at processTicksAndRejections (unknown:7:39)
}

NodeJS is installed on the device, opencode2 is installed as global package on NodeJS.

Plugins

tickernelz/opencode-mem.git#opencode-api-v2

OpenCode version

opencode2 v0.0.0-beta-17823

Steps to reproduce

configure a plugin with a github path, as per bun/npm spec.

Operating System

win11

Terminal

Terminal.app

Shell

pwsh.exe 7.5.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with the shown opencode.jsonc plugin definition and the GitHub URL. Trace the PluginSupervisor load, resolve, and activate paths shown in the stack trace, along with ServerProcess.start, to identify how the npm and Bun installation paths interact. Done means the plugin can be resolved and loaded from the Git URL on Windows without NpmInstallFailedError.

Written by the indexing model from the issue text.

Assessment

Tech stack
bun, nodejs, typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.