@adminforth/bulk-ai-flow 1.22.0 → 1.22.2

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 CHANGED
@@ -13,5 +13,5 @@ custom/package-lock.json
13
13
  custom/package.json
14
14
  custom/tsconfig.json
15
15
 
16
- sent 99,466 bytes received 172 bytes 199,276.00 bytes/sec
17
- total size is 98,821 speedup is 0.99
16
+ sent 99,492 bytes received 172 bytes 199,328.00 bytes/sec
17
+ total size is 98,847 speedup is 0.99
@@ -190,7 +190,7 @@
190
190
 
191
191
  <script lang="ts" setup>
192
192
  import { callAdminForthApi } from '@/utils';
193
- import { ref, computed, reactive } from 'vue'
193
+ import { ref, computed, nextTick } from 'vue'
194
194
  import pLimit from 'p-limit';
195
195
  import { Dialog, Textarea, Toggle, Tooltip } from '@/afcl';
196
196
  import VisionTable from './VisionTable.vue'
@@ -466,7 +466,7 @@ function resumeGeneration() {
466
466
  resolvePause();
467
467
  }
468
468
 
469
- function cancelGeneration() {
469
+ async function cancelGeneration() {
470
470
  if (isGenerationCancelled.value) {
471
471
  return;
472
472
  }
@@ -486,6 +486,7 @@ function cancelGeneration() {
486
486
  }
487
487
  }
488
488
  touchRecords();
489
+ await nextTick();
489
490
  tableRef.value?.refresh();
490
491
  }
491
492
 
@@ -190,7 +190,7 @@
190
190
 
191
191
  <script lang="ts" setup>
192
192
  import { callAdminForthApi } from '@/utils';
193
- import { ref, computed, reactive } from 'vue'
193
+ import { ref, computed, nextTick } from 'vue'
194
194
  import pLimit from 'p-limit';
195
195
  import { Dialog, Textarea, Toggle, Tooltip } from '@/afcl';
196
196
  import VisionTable from './VisionTable.vue'
@@ -466,7 +466,7 @@ function resumeGeneration() {
466
466
  resolvePause();
467
467
  }
468
468
 
469
- function cancelGeneration() {
469
+ async function cancelGeneration() {
470
470
  if (isGenerationCancelled.value) {
471
471
  return;
472
472
  }
@@ -486,6 +486,7 @@ function cancelGeneration() {
486
486
  }
487
487
  }
488
488
  touchRecords();
489
+ await nextTick();
489
490
  tableRef.value?.refresh();
490
491
  }
491
492
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/bulk-ai-flow",
3
- "version": "1.22.0",
3
+ "version": "1.22.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/types.ts CHANGED
@@ -137,11 +137,19 @@ export interface PluginOptions {
137
137
  */
138
138
  recordSelector?: 'checkbox' | 'filtered';
139
139
 
140
- /**
141
- * additional confirmation: generation of very many records is risky in terms of budget. On 1m budget it might be thousands USD,
142
- * this settings allows to suspend rgeneration and allow user to review everything what was already generated so far
143
- * and then suggest Resume / Stop Generation buttons. You can set it in mode where it is shown only afterFirst N records (e.g. at start) or every N records
144
- */
140
+ /**
141
+ * Additional confirmation settings for long-running generations.
142
+ *
143
+ * Generating a very large number of records can be expensive. This option
144
+ * lets you pause the process at specific checkpoints so the user can review
145
+ * everything generated so far and then choose to Resume or Stop the
146
+ * generation.
147
+ *
148
+ * Each entry in the array defines a confirmation breakpoint:
149
+ * - `{ afterRecords: N }` – show a confirmation once, after the first N
150
+ * records have been processed.
151
+ * - `{ everyRecords: N }` – show a confirmation after every N records.
152
+ */
145
153
  askConfirmation?: ({ afterRecords: number } | { everyRecords: number })[]
146
154
 
147
155
  }