mirror of
https://github.com/qwibitai/nanoclaw.git
synced 2026-06-12 18:11:51 +08:00
5e76b9d7e8
Behavior tests in both trees that import ONLY the real barrel (host src/providers/index.ts → listProviderContainerConfigNames; container providers/index.ts → listProviderNames) and assert the provider is present. Unlike the existing *.factory.test.ts (which import the provider module directly, self-register, and stay green when the barrel line is deleted), these go red if the barrel reach-in is removed/drifts. The opencode container test also implicitly guards @opencode-ai/sdk via its unmocked barrel import. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>