build: compile TypeScript to dist and add .gitignore
This commit is contained in:
1 parent
bb367eb952
commit
89e80f7c82
4 files changed
+25
-2
No files matched your search
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
declare const _default: import("openclaw/plugin-sdk/tool-plugin").DefinedToolPluginEntry;
|
||||
export default _default;
|
||||
Vendored
+17
@@ -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 }),
|
||||
}),
|
||||
],
|
||||
});
|
||||
Reference in new issue
Block a user