@sodikinnaa/smart-report-plugin 1.0.4 → 1.0.6

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.d.ts CHANGED
@@ -1 +1,6 @@
1
- export default function register(api: any): void;
1
+ /**
2
+ * MCP Activation Hook
3
+ */
4
+ export declare function register(api: any): void;
5
+ export default register;
6
+ export declare const activate: typeof register;
package/dist/index.js CHANGED
@@ -48,7 +48,10 @@ async function callMcp(api, method, params = {}) {
48
48
  }
49
49
  return response.data.result;
50
50
  }
51
- export default function register(api) {
51
+ /**
52
+ * MCP Activation Hook
53
+ */
54
+ export function register(api) {
52
55
  // 1. CLI Commands
53
56
  api.registerCli(({ program }) => {
54
57
  program
@@ -125,3 +128,6 @@ export default function register(api) {
125
128
  }
126
129
  });
127
130
  }
131
+ // Ensure both default and named exports
132
+ export default register;
133
+ export const activate = register;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "smart-report-plugin",
3
3
  "name": "Smart Report Integration",
4
- "version": "1.0.0",
4
+ "version": "1.0.6",
5
5
  "description": "Integration plugin for Smart Report and AI Analytics",
6
6
  "entry": "dist/index.js",
7
7
  "skills": ["skills/smart-report/SKILL.md"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sodikinnaa/smart-report-plugin",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "OpenClaw plugin for Smart Report system integration",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
package/src/index.ts CHANGED
@@ -54,7 +54,10 @@ async function callMcp(api: any, method: string, params: any = {}) {
54
54
  return response.data.result;
55
55
  }
56
56
 
57
- export default function register(api: any) {
57
+ /**
58
+ * MCP Activation Hook
59
+ */
60
+ export function register(api: any) {
58
61
  // 1. CLI Commands
59
62
  api.registerCli(({ program }: any) => {
60
63
  program
@@ -133,3 +136,7 @@ export default function register(api: any) {
133
136
  }
134
137
  });
135
138
  }
139
+
140
+ // Ensure both default and named exports
141
+ export default register;
142
+ export const activate = register;