@adminforth/bulk-ai-flow 1.15.6 → 1.15.8
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/build.log +2 -2
- package/custom/VisionAction.vue +3 -0
- package/dist/custom/VisionAction.vue +3 -0
- package/dist/index.js +8 -1
- package/index.ts +7 -1
- package/package.json +2 -2
package/build.log
CHANGED
|
@@ -13,5 +13,5 @@ custom/package-lock.json
|
|
|
13
13
|
custom/package.json
|
|
14
14
|
custom/tsconfig.json
|
|
15
15
|
|
|
16
|
-
sent
|
|
17
|
-
total size is 80,
|
|
16
|
+
sent 81,020 bytes received 172 bytes 162,384.00 bytes/sec
|
|
17
|
+
total size is 80,379 speedup is 0.99
|
package/custom/VisionAction.vue
CHANGED
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
: popupMode === 'settings' ? 'lg:w-[1000px] !lg:max-w-[1000px]'
|
|
14
14
|
: 'lg:w-[500px] !lg:max-w-[500px]'"
|
|
15
15
|
:beforeCloseFunction="closeDialog"
|
|
16
|
+
:closable="false"
|
|
17
|
+
:askForCloseConfirmation="true"
|
|
18
|
+
closeConfirmationText="Are you sure you want to close without saving?"
|
|
16
19
|
:buttons="popupMode === 'generation' ? [
|
|
17
20
|
{
|
|
18
21
|
label: checkedCount > 1 ? 'Save fields' : 'Save field',
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
: popupMode === 'settings' ? 'lg:w-[1000px] !lg:max-w-[1000px]'
|
|
14
14
|
: 'lg:w-[500px] !lg:max-w-[500px]'"
|
|
15
15
|
:beforeCloseFunction="closeDialog"
|
|
16
|
+
:closable="false"
|
|
17
|
+
:askForCloseConfirmation="true"
|
|
18
|
+
closeConfirmationText="Are you sure you want to close without saving?"
|
|
16
19
|
:buttons="popupMode === 'generation' ? [
|
|
17
20
|
{
|
|
18
21
|
label: checkedCount > 1 ? 'Save fields' : 'Save field',
|
package/dist/index.js
CHANGED
|
@@ -193,7 +193,14 @@ export default class BulkAiFlowPlugin extends AdminForthPlugin {
|
|
|
193
193
|
jobs.set(jobId, { status: 'failed', error: 'AI provider refused to fill fields' });
|
|
194
194
|
return { ok: false, error: 'AI provider refused to fill fields' };
|
|
195
195
|
}
|
|
196
|
-
|
|
196
|
+
let resData;
|
|
197
|
+
try {
|
|
198
|
+
resData = JSON.parse(resp);
|
|
199
|
+
}
|
|
200
|
+
catch (e) {
|
|
201
|
+
jobs.set(jobId, { status: 'failed', error: 'AI response is not valid JSON' });
|
|
202
|
+
return { ok: false, error: 'AI response is not valid JSON' };
|
|
203
|
+
}
|
|
197
204
|
const result = resData;
|
|
198
205
|
jobs.set(jobId, { status: 'completed', result });
|
|
199
206
|
return { ok: true };
|
package/index.ts
CHANGED
|
@@ -186,7 +186,13 @@ export default class BulkAiFlowPlugin extends AdminForthPlugin {
|
|
|
186
186
|
jobs.set(jobId, { status: 'failed', error: 'AI provider refused to fill fields' });
|
|
187
187
|
return { ok: false, error: 'AI provider refused to fill fields' };
|
|
188
188
|
}
|
|
189
|
-
|
|
189
|
+
let resData;
|
|
190
|
+
try {
|
|
191
|
+
resData = JSON.parse(resp);
|
|
192
|
+
} catch (e) {
|
|
193
|
+
jobs.set(jobId, { status: 'failed', error: 'AI response is not valid JSON' });
|
|
194
|
+
return { ok: false, error: 'AI response is not valid JSON' };
|
|
195
|
+
}
|
|
190
196
|
const result = resData;
|
|
191
197
|
jobs.set(jobId, { status: 'completed', result });
|
|
192
198
|
return { ok: true };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminforth/bulk-ai-flow",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@types/handlebars": "^4.0.40",
|
|
30
|
-
"adminforth": "^2.
|
|
30
|
+
"adminforth": "^2.13.0-next.33",
|
|
31
31
|
"handlebars": "^4.7.8"
|
|
32
32
|
},
|
|
33
33
|
"release": {
|