@sodikinnaa/smart-report-plugin 2.1.0 → 2.1.1

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 CHANGED
@@ -100,6 +100,16 @@ export function register(api) {
100
100
  return { content: JSON.stringify(data, null, 2) };
101
101
  }
102
102
  });
103
+ api.registerResource({
104
+ uri: 'smartreport://guides',
105
+ name: 'Guides List',
106
+ description: 'List of all available dynamic guides',
107
+ mimeType: 'application/json',
108
+ read: async () => {
109
+ const data = await callMcp(api, 'guides/list', {});
110
+ return { content: JSON.stringify(data, null, 2) };
111
+ }
112
+ });
103
113
  api.registerResource({
104
114
  uri: 'smartreport://debt-aging',
105
115
  name: 'Debt Aging Analysis',
@@ -134,6 +144,32 @@ export function register(api) {
134
144
  }
135
145
  }
136
146
  });
147
+ api.registerTool({
148
+ name: 'get_guides_list',
149
+ description: 'Retrieve list of all available dynamic guides.',
150
+ execute: async () => {
151
+ try {
152
+ const data = await callMcp(api, 'guides/list', {});
153
+ return { text: JSON.stringify(data, null, 2) };
154
+ }
155
+ catch (err) {
156
+ return { error: err.message };
157
+ }
158
+ }
159
+ });
160
+ api.registerTool({
161
+ name: 'get_guide_content',
162
+ description: 'Retrieve full content of a specific guide by ID.',
163
+ execute: async (args) => {
164
+ try {
165
+ const data = await callMcp(api, 'guides/get', args);
166
+ return { text: JSON.stringify(data, null, 2) };
167
+ }
168
+ catch (err) {
169
+ return { error: err.message };
170
+ }
171
+ }
172
+ });
137
173
  api.registerTool({
138
174
  name: 'get_list_reports',
139
175
  description: 'Retrieve reports with filters (date, employee, division).',
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "id": "smart-report-plugin",
3
3
  "name": "Smart Report Integration",
4
- "version": "2.0.0",
5
- "description": "Integration plugin for Smart Report with Professional Dashboard Formatting",
6
- "entry": "dist/index.js",
4
+ "version": "2.1.1",
5
+ "description": "Integration plugin for Smart Report and AI Analytics with Daily Dashboard and Dynamic Guides",
6
+ "main": "dist/index.js",
7
7
  "skills": ["skills/smart-report/SKILL.md"],
8
8
  "configSchema": {
9
9
  "type": "object",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sodikinnaa/smart-report-plugin",
3
- "version": "2.1.0",
4
- "description": "OpenClaw plugin for Smart Report with Professional Dashboard Formatting",
3
+ "version": "2.1.1",
4
+ "description": "OpenClaw plugin for Smart Report system integration with Daily Dashboard",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "type": "module",