mirror of
https://github.com/affaan-m/ECC.git
synced 2026-11-17 21:42:11 +00:00
42 lines
1.2 KiB
TypeScript
42 lines
1.2 KiB
TypeScript
/**
|
|
* ECC Plugin for OpenCode
|
|
*
|
|
* This package provides the published ECC OpenCode plugin module:
|
|
* - 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)
|
|
* - Bundled reference config/assets for the wider ECC OpenCode setup
|
|
*
|
|
* Usage:
|
|
*
|
|
* Option 1: Install via npm
|
|
* ```bash
|
|
* npm install ecc-universal
|
|
* ```
|
|
*
|
|
* Then add to your opencode.json:
|
|
* ```json
|
|
* {
|
|
* "plugin": ["ecc-universal"]
|
|
* }
|
|
* ```
|
|
*
|
|
* 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.
|
|
*
|
|
* Option 2: Clone and use directly
|
|
* ```bash
|
|
* git clone https://github.com/affaan-m/ECC
|
|
* cd ECC
|
|
* opencode
|
|
* ```
|
|
*
|
|
* @packageDocumentation
|
|
*/
|
|
|
|
// Export the main plugin
|
|
// The default package export targets OpenCode 2.x's definition loader.
|
|
// OpenCode 1.x's function-only loader cannot load this package entry. The
|
|
// named V1 factory in plugins/ecc-hooks.ts is retained for migration only.
|
|
export { default } from "./plugins/ecc-hooks.ts"
|