singularity-forge/packages
Tom Boucher 63a61196e8 fix: silence spurious extension load error for non-extension libraries (#1709) (#1747)
The extension loader emits "Extension does not export a valid factory
function" for shared libraries like cmux that live in the extensions/
directory but are not extensions. Previous fixes (#1537, #1545) added
pi manifest opt-out checks in the three discovery layers, but a
defense-in-depth gap remained: if any discovery path fails to filter
a library, loadExtension() reports it as a broken extension.

Add isNonExtensionLibrary() check in loadExtension() itself. When a
module does not export a factory function, the loader now checks the
nearest package.json for a "pi" manifest with no declared extensions
before reporting an error. Libraries with "pi": {} are silently
skipped instead of producing a spurious error on every startup.

Fixes #1709

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 08:54:19 -06:00
..
native refactor: remove dead code (unused exports) (#1486) 2026-03-19 15:33:32 -06:00
pi-agent-core fix: preserve user messages during abort with origin-aware queue clearing (#1439) (#1521) 2026-03-19 18:05:04 -06:00
pi-ai fix: update Anthropic OAuth endpoints to platform.claude.com (#1608) 2026-03-20 10:27:20 -06:00
pi-coding-agent fix: silence spurious extension load error for non-extension libraries (#1709) (#1747) 2026-03-21 08:54:19 -06:00
pi-tui refactor: replace hardcoded /tmp paths with os.tmpdir()/homedir() (#1708) 2026-03-21 08:46:34 -06:00