@realtimex/folio 0.1.7 → 0.1.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.
|
@@ -299,7 +299,7 @@ export class IngestionService {
|
|
|
299
299
|
if (insertErr || !ingestion) throw new Error(`Failed to create ingestion record: ${insertErr?.message}`);
|
|
300
300
|
|
|
301
301
|
logger.info(`Processing ingestion ${ingestion.id}: ${filename}`);
|
|
302
|
-
Actuator.logEvent(ingestion.id, userId, "info", "Triage", { action: "Ingestion started", source, filename, fileSize }, supabase);
|
|
302
|
+
Actuator.logEvent(ingestion.id, userId, "info", "Triage", { action: "Ingestion started", source, filename, fileSize, is_high_intent: true }, supabase);
|
|
303
303
|
|
|
304
304
|
// 2. Document Triage
|
|
305
305
|
let isFastPath = false;
|
|
@@ -580,7 +580,7 @@ export class IngestionService {
|
|
|
580
580
|
.update({ status: "processing", error_message: null, policy_id: null, policy_name: null, extracted: {}, actions_taken: [], summary: null })
|
|
581
581
|
.eq("id", ingestionId);
|
|
582
582
|
|
|
583
|
-
Actuator.logEvent(ingestionId, userId, "info", "Triage", { action: "Re-run Initiated" }, supabase);
|
|
583
|
+
Actuator.logEvent(ingestionId, userId, "info", "Triage", { action: "Re-run Initiated", is_high_intent: true }, supabase);
|
|
584
584
|
|
|
585
585
|
const filename = ingestion.filename;
|
|
586
586
|
const filePath = ingestion.storage_path;
|
|
@@ -635,7 +635,7 @@ export class IngestionService {
|
|
|
635
635
|
isFastPath = true;
|
|
636
636
|
extractionContent = pdfData.text;
|
|
637
637
|
}
|
|
638
|
-
|
|
638
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
639
639
|
} catch (err) {
|
|
640
640
|
// ignore
|
|
641
641
|
}
|
|
@@ -214,7 +214,7 @@ export class IngestionService {
|
|
|
214
214
|
if (insertErr || !ingestion)
|
|
215
215
|
throw new Error(`Failed to create ingestion record: ${insertErr?.message}`);
|
|
216
216
|
logger.info(`Processing ingestion ${ingestion.id}: ${filename}`);
|
|
217
|
-
Actuator.logEvent(ingestion.id, userId, "info", "Triage", { action: "Ingestion started", source, filename, fileSize }, supabase);
|
|
217
|
+
Actuator.logEvent(ingestion.id, userId, "info", "Triage", { action: "Ingestion started", source, filename, fileSize, is_high_intent: true }, supabase);
|
|
218
218
|
// 2. Document Triage
|
|
219
219
|
let isFastPath = false;
|
|
220
220
|
let isVlmFastPath = false;
|
|
@@ -471,7 +471,7 @@ export class IngestionService {
|
|
|
471
471
|
.from("ingestions")
|
|
472
472
|
.update({ status: "processing", error_message: null, policy_id: null, policy_name: null, extracted: {}, actions_taken: [], summary: null })
|
|
473
473
|
.eq("id", ingestionId);
|
|
474
|
-
Actuator.logEvent(ingestionId, userId, "info", "Triage", { action: "Re-run Initiated" }, supabase);
|
|
474
|
+
Actuator.logEvent(ingestionId, userId, "info", "Triage", { action: "Re-run Initiated", is_high_intent: true }, supabase);
|
|
475
475
|
const filename = ingestion.filename;
|
|
476
476
|
const filePath = ingestion.storage_path;
|
|
477
477
|
if (!filePath)
|