@sodikinnaa/smart-report-plugin 2.0.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).',
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "smart-report-plugin",
|
|
3
3
|
"name": "Smart Report Integration",
|
|
4
|
-
"version": "2.
|
|
5
|
-
"description": "Integration plugin for Smart Report with
|
|
6
|
-
"
|
|
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.
|
|
4
|
-
"description": "OpenClaw plugin for Smart Report with
|
|
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",
|
|
@@ -38,5 +38,11 @@ Tampilkan ringkasan eksekutif:
|
|
|
38
38
|
* 📅 **[Tanggal]**: [Jumlah] laporan diterima.
|
|
39
39
|
* Detail: [Link/ID laporan jika ada].
|
|
40
40
|
|
|
41
|
+
### 4. Guides Management (`smartreport://guides`)
|
|
42
|
+
Tampilkan informasi edukatif:
|
|
43
|
+
* 📚 **[Judul Guide]** (Kategori: [Category]) - ID: [id]
|
|
44
|
+
|
|
45
|
+
Gunakan tool `get_guide_content` untuk membaca detail instruksi.
|
|
46
|
+
|
|
41
47
|
---
|
|
42
48
|
*Generated by: SUL*** Eng***
|
|
Binary file
|
package/src/index.ts
CHANGED
|
@@ -109,6 +109,17 @@ export function register(api: any) {
|
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
|
|
112
|
+
api.registerResource({
|
|
113
|
+
uri: 'smartreport://guides',
|
|
114
|
+
name: 'Guides List',
|
|
115
|
+
description: 'List of all available dynamic guides',
|
|
116
|
+
mimeType: 'application/json',
|
|
117
|
+
read: async () => {
|
|
118
|
+
const data = await callMcp(api, 'guides/list', {});
|
|
119
|
+
return { content: JSON.stringify(data, null, 2) };
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
|
|
112
123
|
api.registerResource({
|
|
113
124
|
uri: 'smartreport://debt-aging',
|
|
114
125
|
name: 'Debt Aging Analysis',
|
|
@@ -145,6 +156,32 @@ export function register(api: any) {
|
|
|
145
156
|
}
|
|
146
157
|
});
|
|
147
158
|
|
|
159
|
+
api.registerTool({
|
|
160
|
+
name: 'get_guides_list',
|
|
161
|
+
description: 'Retrieve list of all available dynamic guides.',
|
|
162
|
+
execute: async () => {
|
|
163
|
+
try {
|
|
164
|
+
const data = await callMcp(api, 'guides/list', {});
|
|
165
|
+
return { text: JSON.stringify(data, null, 2) };
|
|
166
|
+
} catch (err: any) {
|
|
167
|
+
return { error: err.message };
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
api.registerTool({
|
|
173
|
+
name: 'get_guide_content',
|
|
174
|
+
description: 'Retrieve full content of a specific guide by ID.',
|
|
175
|
+
execute: async (args: any) => {
|
|
176
|
+
try {
|
|
177
|
+
const data = await callMcp(api, 'guides/get', args);
|
|
178
|
+
return { text: JSON.stringify(data, null, 2) };
|
|
179
|
+
} catch (err: any) {
|
|
180
|
+
return { error: err.message };
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
|
|
148
185
|
api.registerTool({
|
|
149
186
|
name: 'get_list_reports',
|
|
150
187
|
description: 'Retrieve reports with filters (date, employee, division).',
|