diff --git a/src/cli/index.ts b/src/cli/index.ts index bacd696..42dee9f 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -15,12 +15,12 @@ const isSkillsOnly = args.includes('--skills'); const isWorkflowsOnly = args.includes('--workflows'); if (isVersion) { - console.log(`@activade/open-workflows v${cliVersion}`); + process.stdout.write(`@activade/open-workflows v${cliVersion}\n`); process.exit(0); } if (isHelp) { - console.log(`@activade/open-workflows v${cliVersion} + process.stdout.write(`@activade/open-workflows v${cliVersion} AI-powered GitHub automation workflows as an OpenCode plugin. diff --git a/src/index.ts b/src/index.ts index 5888c94..5296e4a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,17 +2,11 @@ import type { Plugin } from '@opencode-ai/plugin'; import { tools } from './tools'; -const WORKFLOW_TOOLS = ['submit_review', 'apply_labels', 'github_release', 'bun_release']; - export const plugin: Plugin = async () => { return { tool: tools, - event: async ({ event }) => { - if (event.type === 'session.error') { - console.error(`[open-workflows] Session error:`, event.properties); - } - }, + event: async ({ event: _event }) => {}, 'chat.params': async (input, output) => { const structuredPatterns = [ @@ -32,17 +26,9 @@ export const plugin: Plugin = async () => { } }, - 'tool.execute.before': async (input) => { - if (WORKFLOW_TOOLS.includes(input.tool)) { - console.log(`[open-workflows] Executing ${input.tool}...`); - } - }, + 'tool.execute.before': async (_input) => {}, - 'tool.execute.after': async (input, output) => { - if (WORKFLOW_TOOLS.includes(input.tool)) { - console.log(`[open-workflows] ${input.tool}: ${output.title}`); - } - }, + 'tool.execute.after': async (_input, _output) => {}, }; };