@doclo/core 0.1.5 → 0.1.7

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.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as ProviderVendor, A as AccessMethod } from './validation-CzOz6fwq.js';
2
- export { z as AggregatedMetrics, B as BBox, r as CategorizeNodeConfig, s as ChunkMetadata, u as ChunkNodeConfig, t as ChunkOutput, n as CitationConfig, k as CitationSourceType, v as CombineNodeConfig, T as CompatibilityRule, C as ConsensusConfig, e as ConsensusMetadata, d as ConsensusRunResult, D as DocumentIR, b as DocumentIRExtras, x as EnhancedExtractionSchema, E as ExtractNodeConfig, $ as ExtractedImage, m as FieldCitation, F as FieldVotingDetails, G as FlowContext, a6 as FlowExecutionError, h as FlowInput, i as FlowInputValidation, j as FlowResult, a7 as FlowValidationError, I as IRLine, a as IRPage, W as JSONSchemaNode, c as LLMJsonProvider, L as LLMProvider, Z as LanguageOptions, l as LineCitation, g as MaybeWithConsensusMetadata, M as MultimodalInput, a8 as NODE_COMPATIBILITY_MATRIX, H as NodeCtx, K as NodeDef, J as NodeTypeInfo, Q as NodeTypeName, N as NormalizedBBox, O as OCRProvider, a0 as OCRProviderOptions, w as OutputNodeConfig, o as OutputWithCitations, f as OutputWithConsensus, Y as PageRangeOptions, p as ParseNodeConfig, X as ProcessingMode, a2 as ProviderCitation, aj as ProviderIdentity, ah as RESERVED_VARIABLES, R as ReasoningConfig, _ as SegmentationResult, S as SplitDocument, q as SplitNodeConfig, y as StepMetric, V as VLMProvider, a1 as VLMProviderOptions, U as ValidationResult, a3 as aggregateMetrics, af as canStartForEachItemFlow, an as createIdentity, ab as getCompatibleTargets, aa as getNodeTypeInfo, a9 as getNodeTypeName, ac as getSuggestedConnections, ae as getValidForEachStarters, am as isLocalEndpoint, a4 as node, al as parseProviderString, ai as protectReservedVariables, a5 as runPipeline, ak as toProviderString, ag as validateJson, ad as validateNodeConnection } from './validation-CzOz6fwq.js';
1
+ import { P as ProviderVendor, A as AccessMethod } from './validation-BvBAy3nC.js';
2
+ export { G as AggregatedMetrics, B as BBox, r as CategorizeNodeConfig, t as ChunkMetadata, v as ChunkNodeConfig, u as ChunkOutput, n as CitationConfig, k as CitationSourceType, w as CombineNodeConfig, U as CompatibilityRule, C as ConsensusConfig, e as ConsensusMetadata, d as ConsensusRunResult, D as DocumentIR, b as DocumentIRExtras, y as EnhancedExtractionSchema, s as ExtractInputMode, E as ExtractNodeConfig, a0 as ExtractedImage, m as FieldCitation, F as FieldVotingDetails, H as FlowContext, a7 as FlowExecutionError, h as FlowInput, i as FlowInputValidation, j as FlowResult, a8 as FlowValidationError, I as IRLine, a as IRPage, X as JSONSchemaNode, c as LLMJsonProvider, L as LLMProvider, _ as LanguageOptions, l as LineCitation, g as MaybeWithConsensusMetadata, M as MultimodalInput, a9 as NODE_COMPATIBILITY_MATRIX, J as NodeCtx, Q as NodeDef, K as NodeTypeInfo, T as NodeTypeName, N as NormalizedBBox, O as OCRProvider, a1 as OCRProviderOptions, x as OutputNodeConfig, o as OutputWithCitations, f as OutputWithConsensus, Z as PageRangeOptions, p as ParseNodeConfig, Y as ProcessingMode, a3 as ProviderCitation, ak as ProviderIdentity, ai as RESERVED_VARIABLES, R as ReasoningConfig, $ as SegmentationResult, S as SplitDocument, q as SplitNodeConfig, z as StepMetric, V as VLMProvider, a2 as VLMProviderOptions, W as ValidationResult, a4 as aggregateMetrics, ag as canStartForEachItemFlow, ao as createIdentity, ac as getCompatibleTargets, ab as getNodeTypeInfo, aa as getNodeTypeName, ad as getSuggestedConnections, af as getValidForEachStarters, an as isLocalEndpoint, a5 as node, am as parseProviderString, aj as protectReservedVariables, a6 as runPipeline, al as toProviderString, ah as validateJson, ae as validateNodeConnection } from './validation-BvBAy3nC.js';
3
3
  export { getDocumentPageCount, getPDFPageCount, getPageCountMetadata, getTotalPageCount, splitPDFIntoChunks } from './pdf-utils.js';
4
4
 
5
5
  /**
package/dist/index.js CHANGED
@@ -31,8 +31,8 @@ function aggregateMetrics(metrics) {
31
31
  return result;
32
32
  }
33
33
  var node = (key, run) => ({ key, run });
34
- async function runPipeline(steps, input, observabilityContext) {
35
- const artifacts = {};
34
+ async function runPipeline(steps, input, observabilityContext, flowArtifacts) {
35
+ const artifacts = flowArtifacts ? { ...flowArtifacts } : {};
36
36
  const metrics = [];
37
37
  const ctx = {
38
38
  stepId: observabilityContext?.stepId,