@heripo/pdf-parser 0.1.30 → 0.1.32

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.d.cts CHANGED
@@ -32,24 +32,31 @@ interface PDFCorrectionOptions {
32
32
  models: PDFCorrectionModelOptions;
33
33
  concurrency?: PDFCorrectionConcurrencyOptions;
34
34
  maxRetries?: PDFCorrectionMaxRetriesOptions;
35
- localModelConcurrency?: number;
35
+ modelConcurrency?: number;
36
36
  workItemTimeoutMs?: number;
37
37
  outputLanguage?: string;
38
38
  pageGate?: PDFCorrectionPageGateOptions;
39
39
  autoApplyThreshold?: number;
40
40
  proposalThreshold?: number;
41
+ /**
42
+ * When true, every valid review-assistance command auto-applies regardless of
43
+ * confidence threshold or structural block reason (no manual-review routing).
44
+ * Enabled by the engine demo; defaults to false everywhere else.
45
+ */
46
+ forceAutoApply?: boolean;
41
47
  temperature?: number;
42
48
  }
43
49
  interface NormalizedPDFCorrectionOptions {
44
50
  models: PDFCorrectionModelOptions;
45
51
  concurrency: Required<PDFCorrectionConcurrencyOptions>;
46
52
  maxRetries: Required<PDFCorrectionMaxRetriesOptions>;
47
- localModelConcurrency: number;
53
+ modelConcurrency: number;
48
54
  workItemTimeoutMs: number;
49
55
  outputLanguage: string;
50
56
  pageGate: Required<PDFCorrectionPageGateOptions>;
51
57
  autoApplyThreshold: number;
52
58
  proposalThreshold: number;
59
+ forceAutoApply: boolean;
53
60
  temperature: number;
54
61
  }
55
62
  declare const PDF_CORRECTION_DEFAULTS: Omit<NormalizedPDFCorrectionOptions, 'models'>;
@@ -84,6 +91,8 @@ type PDFConvertOptions = Omit<ConversionOptions, 'to_formats' | 'image_export_mo
84
91
  chunkSize?: number;
85
92
  /** Max retry attempts per failed chunk (default: CHUNKED_CONVERSION.DEFAULT_MAX_RETRIES) */
86
93
  chunkMaxRetries?: number;
94
+ /** Vision model for document language detection when the PDF text layer is insufficient */
95
+ languageDetectionModel?: LanguageModel;
87
96
  /** LLM model for document type validation (opt-in: skipped when not set) */
88
97
  documentValidationModel?: LanguageModel;
89
98
  };
package/dist/index.d.ts CHANGED
@@ -32,24 +32,31 @@ interface PDFCorrectionOptions {
32
32
  models: PDFCorrectionModelOptions;
33
33
  concurrency?: PDFCorrectionConcurrencyOptions;
34
34
  maxRetries?: PDFCorrectionMaxRetriesOptions;
35
- localModelConcurrency?: number;
35
+ modelConcurrency?: number;
36
36
  workItemTimeoutMs?: number;
37
37
  outputLanguage?: string;
38
38
  pageGate?: PDFCorrectionPageGateOptions;
39
39
  autoApplyThreshold?: number;
40
40
  proposalThreshold?: number;
41
+ /**
42
+ * When true, every valid review-assistance command auto-applies regardless of
43
+ * confidence threshold or structural block reason (no manual-review routing).
44
+ * Enabled by the engine demo; defaults to false everywhere else.
45
+ */
46
+ forceAutoApply?: boolean;
41
47
  temperature?: number;
42
48
  }
43
49
  interface NormalizedPDFCorrectionOptions {
44
50
  models: PDFCorrectionModelOptions;
45
51
  concurrency: Required<PDFCorrectionConcurrencyOptions>;
46
52
  maxRetries: Required<PDFCorrectionMaxRetriesOptions>;
47
- localModelConcurrency: number;
53
+ modelConcurrency: number;
48
54
  workItemTimeoutMs: number;
49
55
  outputLanguage: string;
50
56
  pageGate: Required<PDFCorrectionPageGateOptions>;
51
57
  autoApplyThreshold: number;
52
58
  proposalThreshold: number;
59
+ forceAutoApply: boolean;
53
60
  temperature: number;
54
61
  }
55
62
  declare const PDF_CORRECTION_DEFAULTS: Omit<NormalizedPDFCorrectionOptions, 'models'>;
@@ -84,6 +91,8 @@ type PDFConvertOptions = Omit<ConversionOptions, 'to_formats' | 'image_export_mo
84
91
  chunkSize?: number;
85
92
  /** Max retry attempts per failed chunk (default: CHUNKED_CONVERSION.DEFAULT_MAX_RETRIES) */
86
93
  chunkMaxRetries?: number;
94
+ /** Vision model for document language detection when the PDF text layer is insufficient */
95
+ languageDetectionModel?: LanguageModel;
87
96
  /** LLM model for document type validation (opt-in: skipped when not set) */
88
97
  documentValidationModel?: LanguageModel;
89
98
  };