hugin/contract/examples/packages/pub-specht-plugin/1.0.0/index.ts
2026-10-27 08:33:21 +01:00

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
},
}),
},
}
}