diff --git a/.opencode/plugin/example.ts b/.opencode/plugin/example.ts deleted file mode 100644 index 219947d..0000000 --- a/.opencode/plugin/example.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { tool, type Plugin } from "@opencode-ai/plugin" - -export const MyPlugin: Plugin = async ({ project, client, $, directory, worktree }) => { - console.log("Plugin initialized!") - - return { - // Hook implementations go here - tool: { - mytool: tool({ - description: "获取foo的问候语", - args: { - foo: tool.schema.string(), - }, - async execute(args, ctx) { - return `Hello ${args.foo}!` - }, - }), - } - } -} \ No newline at end of file diff --git a/.opencode/skill/pnpm-start/SKILL.md b/.opencode/skill/pnpm-start/SKILL.md deleted file mode 100644 index bdc07f7..0000000 --- a/.opencode/skill/pnpm-start/SKILL.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: '启动项目' -description: '使用 pnpm 启动项目' -tags: - - 'pnpm' ---- - -# 启动项目 - -在使用 pnpm 进行项目管理时,启动项目通常是通过运行定义在 `package.json` 文件中的脚本来完成的。以下是使用 pnpm 启动项目的基本步骤: - -pnpm dev \ No newline at end of file diff --git a/.opencode/tool/project.ts b/.opencode/tool/project.ts deleted file mode 100644 index 2a62437..0000000 --- a/.opencode/tool/project.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { tool } from "@opencode-ai/plugin" - -export default tool({ - description: "获取当前会话信息", - args: {}, - async execute(args, context) { - // Access context information - const { agent, sessionID, messageID } = context - return `智能体: ${agent}, 会话ID: ${sessionID}, 消息ID: ${messageID}` - }, -}) \ No newline at end of file diff --git a/opencode.json b/opencode.json new file mode 100644 index 0000000..e69de29