mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-02-10 08:23:08 +08:00
Major OpenCode integration overhaul: - llms.txt: Comprehensive OpenCode documentation for LLMs (642 lines) - .opencode/plugins/ecc-hooks.ts: All Claude Code hooks translated to OpenCode's plugin system - .opencode/tools/*.ts: 3 custom tools (run-tests, check-coverage, security-audit) - .opencode/commands/*.md: All 24 commands in OpenCode format - .opencode/package.json: npm package structure for opencode-ecc - .opencode/index.ts: Main plugin entry point - Delete incorrect LIMITATIONS.md (hooks ARE supported via plugins) - Rewrite MIGRATION.md with correct hook event mapping - Update README.md OpenCode section to show full feature parity OpenCode has 20+ events vs Claude Code's 3 phases: - PreToolUse → tool.execute.before - PostToolUse → tool.execute.after - Stop → session.idle - SessionStart → session.created - SessionEnd → session.deleted - Plus: file.edited, file.watcher.updated, permission.asked, todo.updated - 12 agents: Full parity - 24 commands: Full parity (+1 from original 23) - 16 skills: Full parity - Hooks: OpenCode has MORE (20+ events vs 3 phases) - Custom Tools: 3 native OpenCode tools The OpenCode configuration can now be: 1. Used directly: cd everything-claude-code && opencode 2. Installed via npm: npm install opencode-ecc
1.5 KiB
1.5 KiB
description, agent, subtask
| description | agent | subtask |
|---|---|---|
| Fix build and TypeScript errors with minimal changes | build-error-resolver | true |
Build Fix Command
Fix build and TypeScript errors with minimal changes: $ARGUMENTS
Your Task
- Run type check:
npx tsc --noEmit - Collect all errors
- Fix errors one by one with minimal changes
- Verify each fix doesn't introduce new errors
- Run final check to confirm all errors resolved
Approach
DO:
- ✅ Fix type errors with correct types
- ✅ Add missing imports
- ✅ Fix syntax errors
- ✅ Make minimal changes
- ✅ Preserve existing behavior
- ✅ Run
tsc --noEmitafter each change
DON'T:
- ❌ Refactor code
- ❌ Add new features
- ❌ Change architecture
- ❌ Use
anytype (unless absolutely necessary) - ❌ Add
@ts-ignorecomments - ❌ Change business logic
Common Error Fixes
| Error | Fix |
|---|---|
| Type 'X' is not assignable to type 'Y' | Add correct type annotation |
| Property 'X' does not exist | Add property to interface or fix property name |
| Cannot find module 'X' | Install package or fix import path |
| Argument of type 'X' is not assignable | Cast or fix function signature |
| Object is possibly 'undefined' | Add null check or optional chaining |
Verification Steps
After fixes:
npx tsc --noEmit- should show 0 errorsnpm run build- should succeednpm test- tests should still pass
IMPORTANT: Focus on fixing errors only. No refactoring, no improvements, no architectural changes. Get the build green with minimal diff.