mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-01 15:32:11 +08:00
c0cc71489a
* fix: avoid unnecessary project plugin dependencies Fixes #12778 * test: move config plugin-dependency tests onto the Effect 4 API zipRight, Effect.fork and Fiber.poll are gone in effect 4.0.0-beta.83, so typecheck failed on this file. Uses andThen, forkChild and a bounded join. * refactor: move plugin dependency logic into kilo-owned helper Per review, extract the local plugin dependency install out of the upstream config.ts and into packages/opencode/src/kilocode/config/plugin-deps.ts so the upstream file keeps a minimal call and future merges have less to conflict on. needsLocalPluginDependency owns the file:// specifier test and installLocalPluginDependency owns the npm install effect, taking the npm service, dir, version and local flag as parameters. Behavior is unchanged: the plugins accumulator still collects both the file-loaded specs and the ConfigPlugin.load results before the check, and the resulting fiber is still pushed onto deps. --------- Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>