17 lines
405 B
TypeScript
17 lines
405 B
TypeScript
import { tool } from "@opencode-ai/plugin"
|
|
import { marke } from "./lib/marke.ts"
|
|
|
|
// OpenCode ruft jede exportierte Funktion beim Start auf
|
|
export const SpechtPlugin = async () => {
|
|
return {
|
|
tool: {
|
|
specht_marke: tool({
|
|
description: "Liefert die Erkennungsmarke des Specht-Plugins",
|
|
args: {},
|
|
async execute() {
|
|
return marke
|
|
},
|
|
}),
|
|
},
|
|
}
|
|
}
|