@heripo/model 0.1.29 → 0.1.31
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 +19 -1
- package/dist/index.d.ts +19 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -850,6 +850,8 @@ type ReviewAssistanceReportVersion = '1.0';
|
|
|
850
850
|
type ReviewAssistanceDisposition = 'auto_applied' | 'proposal' | 'skipped';
|
|
851
851
|
type ReviewAssistanceFailurePolicy = 'partial_page';
|
|
852
852
|
type ReviewAssistancePageStatus = 'succeeded' | 'failed';
|
|
853
|
+
type ReviewAssistanceWorkItemKind = 'text_ocr_hanja' | 'text_integrity' | 'text_role_footnote' | 'table' | 'picture_caption' | 'picture_split' | 'layout_bbox_order';
|
|
854
|
+
type ReviewAssistanceCallTraceValidation = 'passed' | 'reasked' | 'failed';
|
|
853
855
|
type ReviewAssistanceIssueCategory = 'text' | 'table' | 'caption' | 'picture' | 'reading_order' | 'role' | 'text_integrity' | 'paragraph' | 'footnote' | 'bbox' | 'multi_page_table' | 'domain_pattern' | 'review_execution';
|
|
854
856
|
type ReviewAssistanceIssueSeverity = 'info' | 'warning' | 'error';
|
|
855
857
|
type ReviewAssistanceProgressSubstage = 'review-assistance:prepare' | 'review-assistance:page' | 'review-assistance:patch' | 'review-assistance:write-report';
|
|
@@ -989,6 +991,18 @@ interface ReviewAssistancePageResult {
|
|
|
989
991
|
code?: string;
|
|
990
992
|
};
|
|
991
993
|
}
|
|
994
|
+
interface ReviewAssistanceCallTrace {
|
|
995
|
+
workItemId: string;
|
|
996
|
+
kind: ReviewAssistanceWorkItemKind;
|
|
997
|
+
pageNo: number;
|
|
998
|
+
targetRefs: string[];
|
|
999
|
+
modelId?: string;
|
|
1000
|
+
attempts: number;
|
|
1001
|
+
startedAt: string;
|
|
1002
|
+
durationMs: number;
|
|
1003
|
+
validation: ReviewAssistanceCallTraceValidation;
|
|
1004
|
+
failureReasons?: string[];
|
|
1005
|
+
}
|
|
992
1006
|
interface ReviewAssistanceReport {
|
|
993
1007
|
schemaName: ReviewAssistanceReportSchemaName;
|
|
994
1008
|
version: ReviewAssistanceReportVersion;
|
|
@@ -1004,6 +1018,9 @@ interface ReviewAssistanceReport {
|
|
|
1004
1018
|
autoApplyThreshold: number;
|
|
1005
1019
|
proposalThreshold: number;
|
|
1006
1020
|
maxRetries: number;
|
|
1021
|
+
tableMaxRetries?: number;
|
|
1022
|
+
localModelConcurrency?: number;
|
|
1023
|
+
workItemTimeoutMs?: number;
|
|
1007
1024
|
temperature: number;
|
|
1008
1025
|
outputLanguage: string;
|
|
1009
1026
|
failurePolicy: ReviewAssistanceFailurePolicy;
|
|
@@ -1020,6 +1037,7 @@ interface ReviewAssistanceReport {
|
|
|
1020
1037
|
textIntegrityIssueCount?: number;
|
|
1021
1038
|
};
|
|
1022
1039
|
pages: ReviewAssistancePageResult[];
|
|
1040
|
+
callTraces: ReviewAssistanceCallTrace[];
|
|
1023
1041
|
}
|
|
1024
1042
|
interface ReviewAssistanceProgressEvent {
|
|
1025
1043
|
substage: ReviewAssistanceProgressSubstage;
|
|
@@ -1035,4 +1053,4 @@ interface ReviewAssistanceProgressEvent {
|
|
|
1035
1053
|
message?: string;
|
|
1036
1054
|
}
|
|
1037
1055
|
|
|
1038
|
-
export { BCP47_LANGUAGE_TAGS, BCP47_LANGUAGE_TAG_SET, type Bcp47LanguageTag, type Caption, type Chapter, type ComponentUsageReport, type DoclingBBox, type DoclingBaseNode, type DoclingBody, type DoclingDocument, type DoclingGroupItem, type DoclingOrigin, type DoclingPage, type DoclingPageImage, type DoclingPictureItem, type DoclingProv, type DoclingReference, type DoclingTableCell, type DoclingTableData, type DoclingTableItem, type DoclingTextItem, type DocumentProcessResult, LANGUAGE_DISPLAY_NAMES, type ModelUsageDetail, type OcrStrategy, type PageRange, type PhaseUsageReport, type ProcessedDocument, type ProcessedDocumentSource, type ProcessedFootnote, type ProcessedImage, type ProcessedTable, type ProcessedTableCell, type ReviewAssistanceCommand, type ReviewAssistanceDecision, type ReviewAssistanceDecisionEvidence, type ReviewAssistanceDisposition, type ReviewAssistanceFailurePolicy, type ReviewAssistanceImageRegion, type ReviewAssistanceIssue, type ReviewAssistanceIssueCategory, type ReviewAssistanceIssueSeverity, type ReviewAssistancePageResult, type ReviewAssistancePageStatus, type ReviewAssistanceProgressEvent, type ReviewAssistanceProgressStatus, type ReviewAssistanceProgressSubstage, type ReviewAssistanceReport, type ReviewAssistanceReportSchemaName, type ReviewAssistanceReportVersion, type ReviewAssistanceTableCell, type TextBlock, type TokenUsageMetadata, type TokenUsageMetadataValue, type TokenUsageReport, type TokenUsageSummary, buildLanguageDescription, getLanguageDisplayName, isValidBcp47Tag, normalizeToBcp47 };
|
|
1056
|
+
export { BCP47_LANGUAGE_TAGS, BCP47_LANGUAGE_TAG_SET, type Bcp47LanguageTag, type Caption, type Chapter, type ComponentUsageReport, type DoclingBBox, type DoclingBaseNode, type DoclingBody, type DoclingDocument, type DoclingGroupItem, type DoclingOrigin, type DoclingPage, type DoclingPageImage, type DoclingPictureItem, type DoclingProv, type DoclingReference, type DoclingTableCell, type DoclingTableData, type DoclingTableItem, type DoclingTextItem, type DocumentProcessResult, LANGUAGE_DISPLAY_NAMES, type ModelUsageDetail, type OcrStrategy, type PageRange, type PhaseUsageReport, type ProcessedDocument, type ProcessedDocumentSource, type ProcessedFootnote, type ProcessedImage, type ProcessedTable, type ProcessedTableCell, type ReviewAssistanceCallTrace, type ReviewAssistanceCallTraceValidation, type ReviewAssistanceCommand, type ReviewAssistanceDecision, type ReviewAssistanceDecisionEvidence, type ReviewAssistanceDisposition, type ReviewAssistanceFailurePolicy, type ReviewAssistanceImageRegion, type ReviewAssistanceIssue, type ReviewAssistanceIssueCategory, type ReviewAssistanceIssueSeverity, type ReviewAssistancePageResult, type ReviewAssistancePageStatus, type ReviewAssistanceProgressEvent, type ReviewAssistanceProgressStatus, type ReviewAssistanceProgressSubstage, type ReviewAssistanceReport, type ReviewAssistanceReportSchemaName, type ReviewAssistanceReportVersion, type ReviewAssistanceTableCell, type ReviewAssistanceWorkItemKind, type TextBlock, type TokenUsageMetadata, type TokenUsageMetadataValue, type TokenUsageReport, type TokenUsageSummary, buildLanguageDescription, getLanguageDisplayName, isValidBcp47Tag, normalizeToBcp47 };
|
package/dist/index.d.ts
CHANGED
|
@@ -850,6 +850,8 @@ type ReviewAssistanceReportVersion = '1.0';
|
|
|
850
850
|
type ReviewAssistanceDisposition = 'auto_applied' | 'proposal' | 'skipped';
|
|
851
851
|
type ReviewAssistanceFailurePolicy = 'partial_page';
|
|
852
852
|
type ReviewAssistancePageStatus = 'succeeded' | 'failed';
|
|
853
|
+
type ReviewAssistanceWorkItemKind = 'text_ocr_hanja' | 'text_integrity' | 'text_role_footnote' | 'table' | 'picture_caption' | 'picture_split' | 'layout_bbox_order';
|
|
854
|
+
type ReviewAssistanceCallTraceValidation = 'passed' | 'reasked' | 'failed';
|
|
853
855
|
type ReviewAssistanceIssueCategory = 'text' | 'table' | 'caption' | 'picture' | 'reading_order' | 'role' | 'text_integrity' | 'paragraph' | 'footnote' | 'bbox' | 'multi_page_table' | 'domain_pattern' | 'review_execution';
|
|
854
856
|
type ReviewAssistanceIssueSeverity = 'info' | 'warning' | 'error';
|
|
855
857
|
type ReviewAssistanceProgressSubstage = 'review-assistance:prepare' | 'review-assistance:page' | 'review-assistance:patch' | 'review-assistance:write-report';
|
|
@@ -989,6 +991,18 @@ interface ReviewAssistancePageResult {
|
|
|
989
991
|
code?: string;
|
|
990
992
|
};
|
|
991
993
|
}
|
|
994
|
+
interface ReviewAssistanceCallTrace {
|
|
995
|
+
workItemId: string;
|
|
996
|
+
kind: ReviewAssistanceWorkItemKind;
|
|
997
|
+
pageNo: number;
|
|
998
|
+
targetRefs: string[];
|
|
999
|
+
modelId?: string;
|
|
1000
|
+
attempts: number;
|
|
1001
|
+
startedAt: string;
|
|
1002
|
+
durationMs: number;
|
|
1003
|
+
validation: ReviewAssistanceCallTraceValidation;
|
|
1004
|
+
failureReasons?: string[];
|
|
1005
|
+
}
|
|
992
1006
|
interface ReviewAssistanceReport {
|
|
993
1007
|
schemaName: ReviewAssistanceReportSchemaName;
|
|
994
1008
|
version: ReviewAssistanceReportVersion;
|
|
@@ -1004,6 +1018,9 @@ interface ReviewAssistanceReport {
|
|
|
1004
1018
|
autoApplyThreshold: number;
|
|
1005
1019
|
proposalThreshold: number;
|
|
1006
1020
|
maxRetries: number;
|
|
1021
|
+
tableMaxRetries?: number;
|
|
1022
|
+
localModelConcurrency?: number;
|
|
1023
|
+
workItemTimeoutMs?: number;
|
|
1007
1024
|
temperature: number;
|
|
1008
1025
|
outputLanguage: string;
|
|
1009
1026
|
failurePolicy: ReviewAssistanceFailurePolicy;
|
|
@@ -1020,6 +1037,7 @@ interface ReviewAssistanceReport {
|
|
|
1020
1037
|
textIntegrityIssueCount?: number;
|
|
1021
1038
|
};
|
|
1022
1039
|
pages: ReviewAssistancePageResult[];
|
|
1040
|
+
callTraces: ReviewAssistanceCallTrace[];
|
|
1023
1041
|
}
|
|
1024
1042
|
interface ReviewAssistanceProgressEvent {
|
|
1025
1043
|
substage: ReviewAssistanceProgressSubstage;
|
|
@@ -1035,4 +1053,4 @@ interface ReviewAssistanceProgressEvent {
|
|
|
1035
1053
|
message?: string;
|
|
1036
1054
|
}
|
|
1037
1055
|
|
|
1038
|
-
export { BCP47_LANGUAGE_TAGS, BCP47_LANGUAGE_TAG_SET, type Bcp47LanguageTag, type Caption, type Chapter, type ComponentUsageReport, type DoclingBBox, type DoclingBaseNode, type DoclingBody, type DoclingDocument, type DoclingGroupItem, type DoclingOrigin, type DoclingPage, type DoclingPageImage, type DoclingPictureItem, type DoclingProv, type DoclingReference, type DoclingTableCell, type DoclingTableData, type DoclingTableItem, type DoclingTextItem, type DocumentProcessResult, LANGUAGE_DISPLAY_NAMES, type ModelUsageDetail, type OcrStrategy, type PageRange, type PhaseUsageReport, type ProcessedDocument, type ProcessedDocumentSource, type ProcessedFootnote, type ProcessedImage, type ProcessedTable, type ProcessedTableCell, type ReviewAssistanceCommand, type ReviewAssistanceDecision, type ReviewAssistanceDecisionEvidence, type ReviewAssistanceDisposition, type ReviewAssistanceFailurePolicy, type ReviewAssistanceImageRegion, type ReviewAssistanceIssue, type ReviewAssistanceIssueCategory, type ReviewAssistanceIssueSeverity, type ReviewAssistancePageResult, type ReviewAssistancePageStatus, type ReviewAssistanceProgressEvent, type ReviewAssistanceProgressStatus, type ReviewAssistanceProgressSubstage, type ReviewAssistanceReport, type ReviewAssistanceReportSchemaName, type ReviewAssistanceReportVersion, type ReviewAssistanceTableCell, type TextBlock, type TokenUsageMetadata, type TokenUsageMetadataValue, type TokenUsageReport, type TokenUsageSummary, buildLanguageDescription, getLanguageDisplayName, isValidBcp47Tag, normalizeToBcp47 };
|
|
1056
|
+
export { BCP47_LANGUAGE_TAGS, BCP47_LANGUAGE_TAG_SET, type Bcp47LanguageTag, type Caption, type Chapter, type ComponentUsageReport, type DoclingBBox, type DoclingBaseNode, type DoclingBody, type DoclingDocument, type DoclingGroupItem, type DoclingOrigin, type DoclingPage, type DoclingPageImage, type DoclingPictureItem, type DoclingProv, type DoclingReference, type DoclingTableCell, type DoclingTableData, type DoclingTableItem, type DoclingTextItem, type DocumentProcessResult, LANGUAGE_DISPLAY_NAMES, type ModelUsageDetail, type OcrStrategy, type PageRange, type PhaseUsageReport, type ProcessedDocument, type ProcessedDocumentSource, type ProcessedFootnote, type ProcessedImage, type ProcessedTable, type ProcessedTableCell, type ReviewAssistanceCallTrace, type ReviewAssistanceCallTraceValidation, type ReviewAssistanceCommand, type ReviewAssistanceDecision, type ReviewAssistanceDecisionEvidence, type ReviewAssistanceDisposition, type ReviewAssistanceFailurePolicy, type ReviewAssistanceImageRegion, type ReviewAssistanceIssue, type ReviewAssistanceIssueCategory, type ReviewAssistanceIssueSeverity, type ReviewAssistancePageResult, type ReviewAssistancePageStatus, type ReviewAssistanceProgressEvent, type ReviewAssistanceProgressStatus, type ReviewAssistanceProgressSubstage, type ReviewAssistanceReport, type ReviewAssistanceReportSchemaName, type ReviewAssistanceReportVersion, type ReviewAssistanceTableCell, type ReviewAssistanceWorkItemKind, type TextBlock, type TokenUsageMetadata, type TokenUsageMetadataValue, type TokenUsageReport, type TokenUsageSummary, buildLanguageDescription, getLanguageDisplayName, isValidBcp47Tag, normalizeToBcp47 };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@heripo/model",
|
|
3
3
|
"private": false,
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.31",
|
|
6
6
|
"description": "Document models and type definitions for heripo engine",
|
|
7
7
|
"main": "dist/index.cjs",
|
|
8
8
|
"module": "dist/index.js",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@vitest/coverage-v8": "^4.1.
|
|
55
|
+
"@vitest/coverage-v8": "^4.1.6",
|
|
56
56
|
"tsup": "^8.5.1",
|
|
57
|
-
"vitest": "^4.1.
|
|
57
|
+
"vitest": "^4.1.6",
|
|
58
58
|
"@heripo/tsconfig": "0.0.0",
|
|
59
59
|
"@heripo/tsup-config": "0.0.0",
|
|
60
60
|
"@heripo/vitest-config": "0.0.0"
|