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
@@ -0,0 +1,4 @@
|
|||||||
|
node_modules/
|
||||||
|
pnpm-lock.yaml
|
||||||
|
*.log
|
||||||
|
.DS_Store
|
||||||
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 }),
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
});
|
||||||
@@ -5,8 +5,8 @@
|
|||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"configSchema": {
|
"configSchema": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": false,
|
"properties": {},
|
||||||
"properties": {}
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"activation": {
|
"activation": {
|
||||||
"onStartup": true
|
"onStartup": true
|
||||||
|
|||||||
Reference in new issue
Block a user