47a313f6 stopped piDetect reading a package left in Pi's storage as a
loaded MCP adapter. Two cases Kenoia's #1189 covered still read as
loaded on main, so magpie took over Pi's native mcp.json for a user who
had turned the adapter off:
- {"source":"npm:pi-mcp-adapter","autoload":false} with no extension
patterns. Pi 1.1.0's package-manager.js applyPackageDeltaFilter loads
none of the package's extensions then, only the ones it names.
- "+path" in settings.extensions is an override that re-enables a path
Pi already found; it adds no source, but piDetect counted it as one.
The package object now reads autoload, and a "+" entry is skipped like
"-" and "!". #1189's own glob/override resolver isn't ported: main
handles "-"/"!" by package name and the cases above are what was left.
Ran: TestPiDetectLoaded with five new cases (autoload false, false with
extensions [], false with ["index.ts"], true, and a "+npm/..." override);
with pimcp.go put back the autoload:false and "+" cases fail.
go test -tags nogui ./internal/library ok; gofmt -l clean; go vet
darwin, GOOS=linux -tags nogui, GOOS=windows clean. Not tried with a
real Pi install.
Co-authored-by: Kenoia <73810401+Kenoia@users.noreply.github.com>