diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e4ce2a7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +node_modules/ +pnpm-lock.yaml +*.log +.DS_Store diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 0000000..aba21d0 --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,2 @@ +declare const _default: import("openclaw/plugin-sdk/tool-plugin").DefinedToolPluginEntry; +export default _default; diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..466b390 --- /dev/null +++ b/dist/index.js @@ -0,0 +1,17 @@ +import { Type } from "typebox"; +import { defineToolPlugin } from "openclaw/plugin-sdk/tool-plugin"; +export default defineToolPlugin({ + id: "tools", + name: "Tools", + description: "Add Tools tools to OpenClaw.", + tools: (tool) => [ + tool({ + name: "echo", + description: "Echo input text.", + parameters: Type.Object({ + input: Type.String({ description: "Text to echo." }), + }), + execute: async ({ input }) => ({ input }), + }), + ], +}); diff --git a/openclaw.plugin.json b/openclaw.plugin.json index 4483167..58786a4 100644 --- a/openclaw.plugin.json +++ b/openclaw.plugin.json @@ -5,8 +5,8 @@ "version": "0.1.0", "configSchema": { "type": "object", - "additionalProperties": false, - "properties": {} + "properties": {}, + "additionalProperties": false }, "activation": { "onStartup": true