@maskweaver/plugin 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -25
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,29 +1,6 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
description: "Test tool for Maskweaver plugin. Returns a greeting message.",
|
|
5
|
-
args: {
|
|
6
|
-
name: tool.schema.string().optional().describe("Name to greet")
|
|
7
|
-
},
|
|
8
|
-
execute: async ({ name }) => {
|
|
9
|
-
const greeting = name ? `Hello, ${name}! Maskweaver is working.` : "Hello! Maskweaver plugin is loaded and tools are working.";
|
|
10
|
-
return {
|
|
11
|
-
success: true,
|
|
12
|
-
message: greeting,
|
|
13
|
-
version: "0.1.4"
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
var MaskweaverPlugin = async (ctx) => {
|
|
18
|
-
const { client } = ctx;
|
|
19
|
-
await client.app.log({
|
|
20
|
-
service: "maskweaver",
|
|
21
|
-
level: "info",
|
|
22
|
-
message: "Maskweaver plugin loaded (phase 1 - with test tool)"
|
|
23
|
-
});
|
|
24
|
-
return {
|
|
25
|
-
tools: [testTool]
|
|
26
|
-
};
|
|
2
|
+
var MaskweaverPlugin = async (_ctx) => {
|
|
3
|
+
return {};
|
|
27
4
|
};
|
|
28
5
|
var src_default = MaskweaverPlugin;
|
|
29
6
|
export {
|