openagentry

CORE · Error

E_PLUGIN_BAD_EXPORT

Plugin module is missing an adapter shape on its default export.

Package
@openagentry/cli
Category
core

— · Resolution

How to recover

The package must `export default` an object with `category` + `id`. Check the package version — older alphas had stricter loader rules.

— · The shape

What an instance looks like

throw new AgentryError({
  code: 'E_PLUGIN_BAD_EXPORT',
  phase: 'init',
  message: '…contextual message…',
  context: { /* adapter-specific */ },
  suggestedFix: 'The package must `export default` an object with `category` + `id`. Check the package version — older alphas had stricter loader rules.',
  docs: 'https://openagentry.dev/errors/E_PLUGIN_BAD_EXPORT',
});

The context field carries adapter-specific detail (HTTP status, missing env-var names, validation issues). It never contains secret values.


— · See also

Related codes from @openagentry/cli