build: compile TypeScript to dist and add .gitignore

This commit is contained in:
openclaw committed 2026-10-13 05:49:31 +00:00
1 parent bb367eb952
commit 89e80f7c82
4 files changed
+25 -2

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
node_modules/
pnpm-lock.yaml
*.log
.DS_Store
+2
View File
@@ -0,0 +1,2 @@
declare const _default: import("openclaw/plugin-sdk/tool-plugin").DefinedToolPluginEntry;
export default _default;
+17
View File
@@ -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 }),
}),
],
});
+2 -2
View File
@@ -5,8 +5,8 @@
"version": "0.1.0",
"configSchema": {
"type": "object",
"additionalProperties": false,
"properties": {}
"properties": {},
"additionalProperties": false
},
"activation": {
"onStartup": true