Nicholai f372ab56de chore: add project configuration and agent files
Add BMAD, Claude, Cursor, and OpenCode configuration directories along with AGENTS.md documentation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-27 04:31:56 -07:00

25 lines
632 B
TypeScript

import { tool } from "@opencode-ai/plugin/tool"
// Example tool implementation
export async function exampleFunction(input: string): Promise<string> {
// Your tool logic here
return `Processed: ${input}`
}
// Tool definition for OpenCode agent system
export const exampleTool = tool({
description: "Example tool description",
args: {
input: tool.schema.string().describe("Input parameter description"),
},
async execute(args, context) {
try {
return await exampleFunction(args.input)
} catch (error) {
return `Error: ${error.message}`
}
},
})
// Default export
export default exampleTool