@maskweaver/plugin 0.1.3 → 0.1.5
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 +19 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
|
+
import { tool } from "@opencode-ai/plugin";
|
|
3
|
+
var testTool = tool({
|
|
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
|
+
});
|
|
2
17
|
var MaskweaverPlugin = async (ctx) => {
|
|
3
18
|
const { client } = ctx;
|
|
4
19
|
await client.app.log({
|
|
5
20
|
service: "maskweaver",
|
|
6
21
|
level: "info",
|
|
7
|
-
message: "Maskweaver plugin loaded (
|
|
22
|
+
message: "Maskweaver plugin loaded (phase 1 - with test tool)"
|
|
8
23
|
});
|
|
9
|
-
return {
|
|
24
|
+
return {
|
|
25
|
+
tools: [testTool]
|
|
26
|
+
};
|
|
10
27
|
};
|
|
11
28
|
var src_default = MaskweaverPlugin;
|
|
12
29
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maskweaver/plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Maskweaver plugin for opencode - Expert AI personas",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
".": "./dist/index.js"
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
|
-
"build": "bun build ./src/index.ts --outdir dist --target node",
|
|
14
|
+
"build": "bun build ./src/index.ts --outdir dist --target node --external @opencode-ai/plugin",
|
|
15
15
|
"dev": "bun run --watch ./src/index.ts",
|
|
16
16
|
"test": "bun test"
|
|
17
17
|
},
|