Download github_code/affaan-m__ECC/.opencode/index.ts from Corpus-NZ/High-Quality-Code: direct link, hf CLI and curl.
- Browser
- Download file 1.17 kB
-
https://huggingface.co/datasets/Corpus-NZ/High-Quality-Code/resolve/main/github_code/affaan-m__ECC/.opencode/index.ts
- Command line
-
hf download hf://datasets/Corpus-NZ/High-Quality-Code/github_code/affaan-m__ECC/.opencode/index.ts
-
curl -L -o index.ts https://huggingface.co/datasets/Corpus-NZ/High-Quality-Code/resolve/main/github_code/affaan-m__ECC/.opencode/index.ts
1.17 kB
| /** | |
| * 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 | |
| // 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" | |