@maskweaver/plugin 0.1.4 → 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.
Files changed (2) hide show
  1. package/dist/index.js +3 -26
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,32 +1,9 @@
1
- var __create = Object.create;
2
- var __getProtoOf = Object.getPrototypeOf;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __toESM = (mod, isNodeMode, target) => {
7
- target = mod != null ? __create(__getProtoOf(mod)) : {};
8
- const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
9
- for (let key of __getOwnPropNames(mod))
10
- if (!__hasOwnProp.call(to, key))
11
- __defProp(to, key, {
12
- get: () => mod[key],
13
- enumerable: true
14
- });
15
- return to;
16
- };
17
- var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
18
-
19
- // ../../node_modules/@opencode-ai/plugin/index.js
20
- var require_plugin = __commonJS((exports, module) => {
21
- module.exports = {};
22
- });
23
-
24
1
  // src/index.ts
25
- var import_plugin = __toESM(require_plugin(), 1);
26
- var testTool = import_plugin.tool({
2
+ import { tool } from "@opencode-ai/plugin";
3
+ var testTool = tool({
27
4
  description: "Test tool for Maskweaver plugin. Returns a greeting message.",
28
5
  args: {
29
- name: import_plugin.tool.schema.string().optional().describe("Name to greet")
6
+ name: tool.schema.string().optional().describe("Name to greet")
30
7
  },
31
8
  execute: async ({ name }) => {
32
9
  const greeting = name ? `Hello, ${name}! Maskweaver is working.` : "Hello! Maskweaver plugin is loaded and tools are working.";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maskweaver/plugin",
3
- "version": "0.1.4",
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
  },