2026-02-20 01:11:30 -08:00
|
|
|
/**
|
2026-05-19 06:42:17 -04:00
|
|
|
* ECC Plugin for OpenCode
|
2026-02-20 01:11:30 -08:00
|
|
|
*
|
2026-03-09 21:10:46 -07:00
|
|
|
* This package provides the published ECC OpenCode plugin module:
|
2026-02-25 10:45:29 -08:00
|
|
|
* - Plugin hooks (auto-format, TypeScript check, console.log warning, env injection, etc.)
|
|
|
|
|
* - Custom tools (run-tests, check-coverage, security-audit, format-code, lint-check, git-summary)
|
2026-03-09 21:10:46 -07:00
|
|
|
* - Bundled reference config/assets for the wider ECC OpenCode setup
|
2026-02-20 01:11:30 -08:00
|
|
|
*
|
|
|
|
|
* Usage:
|
|
|
|
|
*
|
|
|
|
|
* Option 1: Install via npm
|
|
|
|
|
* ```bash
|
|
|
|
|
* npm install ecc-universal
|
|
|
|
|
* ```
|
|
|
|
|
*
|
|
|
|
|
* Then add to your opencode.json:
|
|
|
|
|
* ```json
|
|
|
|
|
* {
|
|
|
|
|
* "plugin": ["ecc-universal"]
|
|
|
|
|
* }
|
|
|
|
|
* ```
|
|
|
|
|
*
|
2026-03-09 21:10:46 -07:00
|
|
|
* That enables the published plugin module only. For ECC commands, agents,
|
|
|
|
|
* prompts, and instructions, use this repository's `.opencode/opencode.json`
|
|
|
|
|
* as a base or copy the bundled `.opencode/` assets into your project.
|
|
|
|
|
*
|
2026-02-20 01:11:30 -08:00
|
|
|
* Option 2: Clone and use directly
|
|
|
|
|
* ```bash
|
2026-05-19 06:42:17 -04:00
|
|
|
* git clone https://github.com/affaan-m/ECC
|
|
|
|
|
* cd ECC
|
2026-02-20 01:11:30 -08:00
|
|
|
* opencode
|
|
|
|
|
* ```
|
|
|
|
|
*
|
|
|
|
|
* @packageDocumentation
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// Export the main plugin
|
2026-08-10 23:13:50 -04:00
|
|
|
// opencode's legacy plugin loader iterates every module export and throws if
|
|
|
|
|
// any is not a plugin function, so only the plugin function may be exported.
|
|
|
|
|
export { default } from "./plugins/index.js"
|