Feat/opencode support#60
Conversation
Add modular opencode configuration for improved AI agent integration: - .opencode/config.json - main configuration with project metadata - AGENTS.md - comprehensive agent instructions at repo root - .opencode/tasks/ - 4 reusable task definitions: - build.json - build all packages - typecheck.json - TypeScript type checking - lint.json - linting and formatting checks - cli-dev.json - run CLI in development mode - .opencode/workflows/ - 2 workflow compositions: - ci.json - full CI pipeline (typecheck + lint + build) - new-command.json - interactive new command creation - .opencode/README.md - documentation for extending config The modular structure allows easy updates by: - Separating individual tasks into reusable JSON files - Composing workflows from existing tasks - Providing clear documentation for future extensions This setup enables running: opencode task <name> and opencode workflow <name> for common development operations."
Add test suite for opencode configuration files: - .opencode//config.test.js - test runner with 6 test cases: - Validates config.json structure and required fields - Verifies AGENTS.md exists at repository root - Checks all task files are valid JSON with required properties - Validates workflow files (supports both task-based and prompt-based) - Ensures workflows only reference existing tasks - Confirms README.md documentation exists - package.json - add test scripts: - \"test\": runs opencode config tests - \"test:opencode\": specific script for opencode tests Tests can be run with: pnpm test, pnpm run test:opencode, or node directly The test suite ensures configuration integrity and prevents broken references when adding new tasks or agent workflows."
Code reviewFound 4 issues. Checked for bugs and CLAUDE.md compliance. 1. Bug: test script overwrites workspace-wide test runner (package.json:15) 2. CLAUDE.md violation: node instead of tsx (AGENTS.md:42) 3. Factual inaccuracy: stale references (AGENTS.md:9-13) 4. Team standard: missing changeset (package.json:16) |
Work Done:
Add modular opencode configuration for improved AI agent integration:
The modular structure allows easy updates by:
This setup enables running: opencode task and opencode workflow
for common development operations."