mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-20 16:47:59 +02:00
Root package.json declared no main or exports, so OpenCode npm plugin resolution (import.meta.resolve) failed and the plugin was silently skipped (#3127). The .opencode TypeScript sources imported siblings with .js specifiers that only exist after compilation, so the home install, which loads the .ts files in place, crashed the tool registry with ERR_MODULE_NOT_FOUND (#3112). Declare main/types/exports on the root package pointing at the compiled plugin entry, switch the sources to .ts specifiers, and enable allowImportingTsExtensions with rewriteRelativeImportExtensions so the emitted dist keeps working .js specifiers. Add smoke tests that build the package, resolve and import the entry by name from a temp install, and verify every in-place relative import resolves. Fixes #3127 Fixes #3112
13 lines
381 B
TypeScript
13 lines
381 B
TypeScript
/**
|
|
* ECC Plugins for OpenCode
|
|
*
|
|
* This module exports all ECC plugins for OpenCode integration.
|
|
* Plugins provide hook-based automation that mirrors Claude Code's hook system
|
|
* while taking advantage of OpenCode's more sophisticated 20+ event types.
|
|
*/
|
|
|
|
export { ECCHooksPlugin, default } from "./ecc-hooks.ts"
|
|
|
|
// Re-export for named imports
|
|
export * from "./ecc-hooks.ts"
|