mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-07 07:58:36 +00:00
test: guard broad plugin resolver fixtures
This commit is contained in:
@@ -45,6 +45,9 @@ can affect bundled plugins and third-party plugins.
|
||||
`api.ts` or `runtime-api.ts` plus generic SDK capabilities. Do not add a
|
||||
provider-named `src/plugin-sdk/<id>.ts` seam just to make core aware of a
|
||||
bundled channel's private helpers.
|
||||
- Resolver/facade loader tests are the exception to broad source API coverage:
|
||||
use generated tiny plugin fixtures for `api.js` / `runtime-api.js` fallback
|
||||
behavior. Do not point those tests at real bundled plugin source APIs.
|
||||
- For provider work, prefer family-level seams over provider-specific seams.
|
||||
Shared helpers should describe a reusable behavior such as replay policy,
|
||||
tool-schema compat, payload normalization, stream-wrapper composition, or
|
||||
|
||||
@@ -75,6 +75,9 @@ assembly, and contract enforcement.
|
||||
- If setup, discovery, or doctor flows need plugin runtime, make that need
|
||||
explicit and narrow. Do not let cold control-plane paths quietly import broad
|
||||
runtime surfaces.
|
||||
- Resolver and public-surface loader tests must use generated tiny plugin
|
||||
fixtures for broad `api.js` / `runtime-api.js` fallback behavior. Do not point
|
||||
those tests at real bundled plugin source APIs just to prove path resolution.
|
||||
|
||||
## Verification
|
||||
|
||||
|
||||
Reference in New Issue
Block a user