mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-03-31 06:03:29 +08:00
80 lines
1.9 KiB
TypeScript
80 lines
1.9 KiB
TypeScript
/**
|
|
* Everything Claude Code (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/everything-claude-code
|
|
* cd everything-claude-code
|
|
* opencode
|
|
* ```
|
|
*
|
|
* @packageDocumentation
|
|
*/
|
|
|
|
// Export the main plugin
|
|
export { ECCHooksPlugin, default } from "./plugins/index.js"
|
|
|
|
// Export individual components for selective use
|
|
export * from "./plugins/index.js"
|
|
|
|
// Version export
|
|
export const VERSION = "1.6.0"
|
|
|
|
// Plugin metadata
|
|
export const metadata = {
|
|
name: "ecc-universal",
|
|
version: VERSION,
|
|
description: "Everything Claude Code plugin for OpenCode",
|
|
author: "affaan-m",
|
|
features: {
|
|
agents: 13,
|
|
commands: 31,
|
|
skills: 37,
|
|
configAssets: true,
|
|
hookEvents: [
|
|
"file.edited",
|
|
"tool.execute.before",
|
|
"tool.execute.after",
|
|
"session.created",
|
|
"session.idle",
|
|
"session.deleted",
|
|
"file.watcher.updated",
|
|
"permission.ask",
|
|
"todo.updated",
|
|
"shell.env",
|
|
"experimental.session.compacting",
|
|
],
|
|
customTools: [
|
|
"run-tests",
|
|
"check-coverage",
|
|
"security-audit",
|
|
"format-code",
|
|
"lint-check",
|
|
"git-summary",
|
|
],
|
|
},
|
|
}
|