@kontourai/survey 2.4.2 → 2.5.0
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.
|
@@ -70,7 +70,7 @@ export interface PortableExtractionResultEnvelope {
|
|
|
70
70
|
status: "success";
|
|
71
71
|
} | {
|
|
72
72
|
status: "partial";
|
|
73
|
-
reason: "cancelled" | "max-provider-calls" | "max-total-tokens";
|
|
73
|
+
reason: "cancelled" | "max-provider-calls" | "max-total-tokens" | "max-chunks";
|
|
74
74
|
} | {
|
|
75
75
|
status: "failure";
|
|
76
76
|
category: "invalid-config" | "invalid-task" | "preparation" | "provider" | "unexpected";
|
|
@@ -84,7 +84,7 @@ export interface PortableExtractionResultEnvelope {
|
|
|
84
84
|
providerCalls: number;
|
|
85
85
|
totalTokensUsed: number;
|
|
86
86
|
partial?: {
|
|
87
|
-
reason: "cancelled" | "max-provider-calls" | "max-total-tokens";
|
|
87
|
+
reason: "cancelled" | "max-provider-calls" | "max-total-tokens" | "max-chunks";
|
|
88
88
|
completedChunks: number;
|
|
89
89
|
remainingChunks: number;
|
|
90
90
|
tokenOvershoot?: number;
|
|
@@ -429,7 +429,7 @@ function isWellFormedUnicode(value) { for (let index = 0; index < value.length;
|
|
|
429
429
|
} return true; }
|
|
430
430
|
const RAW_SOURCE_KINDS = new Set(["uploaded-document", "web-page", "api-record", "manual-entry", "policy-standard", "inquiry-question", "agent-utterance", "system-schema"]);
|
|
431
431
|
const VALUE_TYPES = new Set(["string", "number", "boolean", "date", "enum", "array", "object"]);
|
|
432
|
-
const PARTIAL = new Set(["cancelled", "max-provider-calls", "max-total-tokens"]);
|
|
432
|
+
const PARTIAL = new Set(["cancelled", "max-provider-calls", "max-total-tokens", "max-chunks"]);
|
|
433
433
|
const FAILURE_CATEGORIES = new Set(["invalid-config", "invalid-task", "preparation", "provider", "unexpected"]);
|
|
434
434
|
const WARNING_CATEGORIES = new Set(["provider", "normalization", "preparation", "limit", "storage", "content", "other"]);
|
|
435
435
|
const FAILURE_KINDS = new Set(["authentication", "rate-limit", "timeout", "invalid-request", "unavailable", "unknown"]);
|
package/dist/src/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export type { PortablePdfBoundingBox, PortablePdfLayout, PortablePdfPageGeometry
|
|
|
10
10
|
export type { ExtractionAlignmentState, ArtifactUnavailableCode, BuiltExtractionInspectorCandidate, BuiltExtractionInspectorModel, ExtractionInspectorCandidate, ExtractionInspectorEntry, ExtractionInspectorExportOptions, ExtractionInspectorFilters, ExtractionInspectorInput, ExtractionInspectorModel, ExtractionInspectorSource, ResolvedExtractionArtifact, } from "./review-workbench/extraction-inspector.js";
|
|
11
11
|
export type { ExtractionEnvelopeImport, ExtractionEnvelopeImportDiagnostic, ExtractionEnvelopeImportOptions, ExtractionEnvelopeImportResult, ExtractionEnvelopeResolutionIdentity, PortableExtractionOccurrence, PortableExtractionProposal, PortableExtractionResultEnvelope, PortablePreparedArtifactState, } from "./extraction-envelope.js";
|
|
12
12
|
export type { CandidateRole, ClaimTargetHint, ProducerPolicy, ExtractionReference, ResourceEnvelope, ResourceMetadata, ReviewActor, ReviewCandidate, ReviewDecision, ReviewDecisionMode, ReviewDecisionSpec, ReviewDecisionStatus, ReviewItem, ReviewItemSpec, ReviewItemStatus, ReviewLocator, ReviewResource, ReviewResourceApiVersion, ReviewResourceKind, ReviewSession, ReviewSessionEvent, ReviewSessionEventSpec, ReviewSessionEventStatus, ReviewSessionEventType, ReviewSessionSpec, ReviewSessionStatus, ReviewValueDescriptor, ReviewValueType, SourceReference, SurveyRecordProjectionHint, } from "./review-resource.js";
|
|
13
|
+
export { toSurfaceReviewedExtractionDecision, toSurfaceReviewedExtractionImport, toSurfaceReviewedExtractionItem, } from "./surface-reviewed-extraction.js";
|
|
13
14
|
export { candidateReviewRecord, candidateSetStatusFor, SurveyInputBuilder } from "./builder.js";
|
|
14
15
|
export type { CandidateReviewRecordInput, SurveyClaimRecord, SurveyInputBuilderArgs, SurveyObservationInput, } from "./builder.js";
|
|
15
16
|
export { reviewedCandidateResolution } from "./reviewed-candidate-resolution.js";
|
package/dist/src/index.js
CHANGED
|
@@ -4,6 +4,7 @@ export { buildReviewItemsFromExtractionEnvelopeImport, createExtractionEnvelopeR
|
|
|
4
4
|
export { buildExtractionInspectorModel, exportExtractionInspector, filterExtractionInspectorCandidates, } from "./review-workbench/extraction-inspector.js";
|
|
5
5
|
export { assertReviewQueueAgainstExtractionImport, assertReviewQueueBinding, bindReviewQueue, hashReviewQueueSnapshot, UnattestedExtractionQueueError, UnattestedReviewQueueError, validateReviewQueueAgainstExtractionImport, validateReviewQueueBinding, } from "./review-workbench/queue-binding.js";
|
|
6
6
|
export { resolvePortablePdfRegion } from "./pdf-layout.js";
|
|
7
|
+
export { toSurfaceReviewedExtractionDecision, toSurfaceReviewedExtractionImport, toSurfaceReviewedExtractionItem, } from "./surface-reviewed-extraction.js";
|
|
7
8
|
export { candidateReviewRecord, candidateSetStatusFor, SurveyInputBuilder } from "./builder.js";
|
|
8
9
|
export { reviewedCandidateResolution } from "./reviewed-candidate-resolution.js";
|
|
9
10
|
export { reviewedCurrentProposedResolution } from "./reviewed-current-proposed-resolution.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SurveyExtractionEnvelopeImport, SurveyExtractionReviewDecision, SurveyExtractionReviewItem } from "@kontourai/surface";
|
|
2
|
+
import type { ExtractionEnvelopeImport } from "./extraction-envelope.js";
|
|
3
|
+
import type { ReviewDecision, ReviewItem } from "./review-resource.js";
|
|
4
|
+
export declare function toSurfaceReviewedExtractionImport(record: ExtractionEnvelopeImport): SurveyExtractionEnvelopeImport;
|
|
5
|
+
export declare function toSurfaceReviewedExtractionItem(item: ReviewItem): SurveyExtractionReviewItem;
|
|
6
|
+
export declare function toSurfaceReviewedExtractionDecision(decision: ReviewDecision): SurveyExtractionReviewDecision;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kontourai/survey",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "Producer-side source, extraction, candidate, and review contracts for projecting verified claims into Surface.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -66,10 +66,12 @@
|
|
|
66
66
|
"validate:repo-hooks": "node scripts/validate-repo-hooks.cjs",
|
|
67
67
|
"docs:build": "npm run build --silent && node scripts/docs-site/build.ts",
|
|
68
68
|
"docs:check": "npm run docs:build && node scripts/docs-site/check-links.ts",
|
|
69
|
-
"check:generated-css": "node scripts/copy-review-workbench-package-assets.cjs --check"
|
|
69
|
+
"check:generated-css": "node scripts/copy-review-workbench-package-assets.cjs --check",
|
|
70
|
+
"workflow:sidecar": "flow-agents-workflow-sidecar",
|
|
71
|
+
"workflow:validate-artifacts": "flow-agents-validate-artifacts"
|
|
70
72
|
},
|
|
71
73
|
"dependencies": {
|
|
72
|
-
"@kontourai/surface": "^2.
|
|
74
|
+
"@kontourai/surface": "^2.13.0"
|
|
73
75
|
},
|
|
74
76
|
"peerDependencies": {
|
|
75
77
|
"typescript": ">=5.0.0"
|
|
@@ -80,6 +82,7 @@
|
|
|
80
82
|
}
|
|
81
83
|
},
|
|
82
84
|
"devDependencies": {
|
|
85
|
+
"@kontourai/flow-agents": "5.5.0",
|
|
83
86
|
"@kontourai/traverse": "^0.25.0",
|
|
84
87
|
"@kontourai/ui": "^1.1.0",
|
|
85
88
|
"@playwright/test": "^1.62.0",
|