@sodikinnaa/smart-report-plugin 1.0.6 → 1.0.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 CHANGED
@@ -83,13 +83,23 @@ export function register(api) {
83
83
  api.registerResource({
84
84
  uri: 'smartreport://employees',
85
85
  name: 'Employee List',
86
- description: 'Complete list of active employees',
86
+ description: 'Complete list of active employees with division names',
87
87
  mimeType: 'application/json',
88
88
  read: async () => {
89
89
  const data = await callMcp(api, 'employees/list', {});
90
90
  return { content: JSON.stringify(data, null, 2) };
91
91
  }
92
92
  });
93
+ api.registerResource({
94
+ uri: 'smartreport://divisions',
95
+ name: 'Division List',
96
+ description: 'List of all divisions in the company',
97
+ mimeType: 'application/json',
98
+ read: async () => {
99
+ const data = await callMcp(api, 'divisions/list', {});
100
+ return { content: JSON.stringify(data, null, 2) };
101
+ }
102
+ });
93
103
  api.registerResource({
94
104
  uri: 'smartreport://debt-aging',
95
105
  name: 'Debt Aging Analysis',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sodikinnaa/smart-report-plugin",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
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
@@ -90,7 +90,7 @@ export function register(api: any) {
90
90
  api.registerResource({
91
91
  uri: 'smartreport://employees',
92
92
  name: 'Employee List',
93
- description: 'Complete list of active employees',
93
+ description: 'Complete list of active employees with division names',
94
94
  mimeType: 'application/json',
95
95
  read: async () => {
96
96
  const data = await callMcp(api, 'employees/list', {});
@@ -98,6 +98,17 @@ export function register(api: any) {
98
98
  }
99
99
  });
100
100
 
101
+ api.registerResource({
102
+ uri: 'smartreport://divisions',
103
+ name: 'Division List',
104
+ description: 'List of all divisions in the company',
105
+ mimeType: 'application/json',
106
+ read: async () => {
107
+ const data = await callMcp(api, 'divisions/list', {});
108
+ return { content: JSON.stringify(data, null, 2) };
109
+ }
110
+ });
111
+
101
112
  api.registerResource({
102
113
  uri: 'smartreport://debt-aging',
103
114
  name: 'Debt Aging Analysis',