Commit de11d97
committed
fix(agentsys-resolver): prefer the plugin's own vendored lib/
findAgentsysLib() only searched for an EXTERNAL agentsys install (CC
marketplace, npm global, require.resolve, dev sibling). In bare CI none
exist, so the 3 tests that actually resolve (findAgentsysLib + get())
threw 'agentsys/lib not found' and failed every PR's CI.
But the sync still ships lib/binary/ (and the rest of the allowlist) into
every plugin, so the resolver's OWN directory already satisfies the
binary/index.js contract. Added __dirname as candidate 0: the plugin is now
self-sufficient (works in CI, offline, no external install) and the external
lookups remain as fallbacks for hosts that share a central agentsys.
tests/agentsys-resolver.test.js: 7/7 pass (was 3 failing).1 parent 93f299e commit de11d97
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
59 | 67 | | |
60 | 68 | | |
61 | 69 | | |
| |||
0 commit comments