Skip to content

fix(agentsys-resolver): prefer plugin's own vendored lib/ (fixes CI)#33

Merged
avifenesh merged 1 commit into
mainfrom
fix/agentsys-resolver-self-vendor
May 29, 2026
Merged

fix(agentsys-resolver): prefer plugin's own vendored lib/ (fixes CI)#33
avifenesh merged 1 commit into
mainfrom
fix/agentsys-resolver-self-vendor

Conversation

@avifenesh
Copy link
Copy Markdown
Contributor

findAgentsysLib() only searched for an external agentsys install, so in bare CI it threw 'agentsys/lib not found' and failed every PR (the 3 resolving tests). Sync ships lib/binary/ into every plugin - the resolver's own __dirname already satisfies the binary/index.js contract. Added __dirname as candidate 0: self-sufficient in CI/offline, external lookups stay as fallback. 7/7 tests pass.

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).
@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@avifenesh avifenesh merged commit 0616c8f into main May 29, 2026
4 checks passed
@avifenesh avifenesh deleted the fix/agentsys-resolver-self-vendor branch May 29, 2026 12:11
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