@eigenpal/cli 0.10.43 → 0.10.45

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @eigenpal/cli
2
2
 
3
+ ## 0.10.45
4
+
5
+ ### Patch Changes
6
+
7
+ - b44c2fb: The workflow authoring reference now covers explicit OCR and Vision AI parse modes, optional figure-caption models, and structured layout output.
8
+
3
9
  ## 0.10.26
4
10
 
5
11
  ### Patch Changes
package/dist/cli.js CHANGED
@@ -19172,7 +19172,8 @@ var init_processor = __esm(() => {
19172
19172
  tenantId: exports_external.string(),
19173
19173
  automationId: exports_external.string().optional(),
19174
19174
  workflowId: exports_external.string(),
19175
- workerId: exports_external.string().optional()
19175
+ workerId: exports_external.string().optional(),
19176
+ stepExecutionId: exports_external.string().optional()
19176
19177
  });
19177
19178
  ((TraceStatus2) => {
19178
19179
  TraceStatus2["PENDING"] = "pending";
@@ -19409,7 +19410,7 @@ function getSupportedFormatsLabel() {
19409
19410
  const labels = [...new Set(allMimes.map((m) => MIME_TO_LABEL[m] ?? m))];
19410
19411
  return labels.join(", ");
19411
19412
  }
19412
- var OFFICE_MIME_TYPES, ParserCategory, ParserTypeSchema, DocumentMetadataSchema, ParseUsageSchema, CoordinateUnitSchema, PointSchema, BoundingRegionSchema, PositionedTextSchema, TableCellSchema, ExtractedTableSchema, LayoutElementTypeSchema, LayoutElementSchema, PageResultSchema, ParseResultSchema, ParseOptionsSchema, ParserInputSchema, EXTENSION_TO_MIME, MIME_TO_EXTENSION, MIME_TO_LABEL;
19413
+ var OFFICE_MIME_TYPES, ParserCategory, ParserTypeSchema, DocumentMetadataSchema, ParseUsageSchema, StructuredDocumentSchema, CoordinateUnitSchema, PointSchema, BoundingRegionSchema, PositionedTextSchema, TableCellSchema, ExtractedTableSchema, LayoutElementTypeSchema, LayoutElementSchema, PageResultSchema, ParseResultSchema, ParseOptionsSchema, ParserInputSchema, EXTENSION_TO_MIME, MIME_TO_EXTENSION, MIME_TO_LABEL;
19413
19414
  var init_parser = __esm(() => {
19414
19415
  init_zod();
19415
19416
  OFFICE_MIME_TYPES = [
@@ -19479,6 +19480,7 @@ var init_parser = __esm(() => {
19479
19480
  pageCount: exports_external.number(),
19480
19481
  processingTimeMs: exports_external.number().optional()
19481
19482
  });
19483
+ StructuredDocumentSchema = exports_external.record(exports_external.string(), exports_external.unknown());
19482
19484
  CoordinateUnitSchema = exports_external.enum(["pixel", "inch", "point", "normalized"]);
19483
19485
  PointSchema = exports_external.object({
19484
19486
  x: exports_external.number(),
@@ -19549,6 +19551,7 @@ var init_parser = __esm(() => {
19549
19551
  parserType: ParserTypeSchema,
19550
19552
  parserVersion: exports_external.string().optional(),
19551
19553
  model: exports_external.string().optional().describe("Model used (for LLM/OCR parsers)"),
19554
+ structured: StructuredDocumentSchema.optional().describe("Canonical structured document with ordered blocks, regions, bounding boxes, tables, figures, and chunks when supported by the parser"),
19552
19555
  rawResponse: exports_external.unknown().optional()
19553
19556
  });
19554
19557
  ParseOptionsSchema = exports_external.object({
@@ -19683,8 +19686,10 @@ var init_document_parser = __esm(() => {
19683
19686
  DocumentParserInputSchema = ResolvedProcessorFileSchema;
19684
19687
  DocumentParserOutputSchema = ParseResultSchema;
19685
19688
  DocumentParserConfigSchema = exports_external.object({
19689
+ parseMode: exports_external.enum(["ocr", "vision"]).optional().describe("Base parser for PDF/image inputs. OCR is the default."),
19686
19690
  ocrModel: exports_external.string().optional().describe("OCR provider ID for PDF/image parsing"),
19687
19691
  llmModel: exports_external.string().optional().describe("LLM provider ID for vision-based parsing"),
19692
+ figureModel: exports_external.string().optional().describe("Vision model used only for the optional figure-description pass"),
19688
19693
  maxConcurrency: exports_external.number().min(1).max(10).default(3).describe("Max concurrent VLM batch requests"),
19689
19694
  pagesPerBatch: exports_external.number().min(1).max(20).default(5).describe("Number of page images per VLM request"),
19690
19695
  pdfRenderScale: exports_external.number().min(1).max(4).default(1).optional().describe("Scale factor used when rendering PDF pages for VLM parsing"),
@@ -65118,12 +65123,15 @@ var AiParseConfigSchema, AiParseOutputSchema, AiExtractConfigSchema, AiExtractOu
65118
65123
  var init_step_configs = __esm(() => {
65119
65124
  init_zod();
65120
65125
  init_common();
65126
+ init_parser();
65121
65127
  init_typed_script();
65122
65128
  init_steps();
65123
65129
  AiParseConfigSchema = exports_external.object({
65124
65130
  input: exports_external.string().describe("Storage reference or template expression for the document"),
65131
+ parseMode: exports_external.enum(["ocr", "vision"]).optional().describe("Base parser for PDF/image inputs. OCR is the default; vision uses the selected LLM. Text and Office files always use native parsing."),
65125
65132
  ocrModel: exports_external.string().optional().describe("OCR provider ID for PDF/image parsing"),
65126
65133
  llmModel: exports_external.string().optional().describe("LLM provider ID for vision-based parsing"),
65134
+ figureModel: exports_external.string().optional().describe("Vision model used only for the optional figure-description pass"),
65127
65135
  maxConcurrency: exports_external.number().min(1).max(10).default(3).optional().describe("Max concurrent VLM batch requests"),
65128
65136
  pagesPerBatch: exports_external.number().min(1).max(20).default(5).optional().describe("Number of page images per VLM request"),
65129
65137
  pdfRenderScale: exports_external.number().min(1).max(4).default(1).optional().describe("Scale factor for rendering PDF pages before VLM parsing. Higher values produce sharper images at larger payload sizes."),
@@ -65135,16 +65143,7 @@ var init_step_configs = __esm(() => {
65135
65143
  describeFigures: exports_external.boolean().optional().describe("Opt-in (default off). After text extraction, detect which pages contain figures with an in-worker layout model, then caption those pages with a vision model and append `<figure>description</figure>` to their text — so image-only pages (property photos, signatures, charts) become findable by text-based steps like ai.split. Note: the layout scan runs over all pages, and the caption step and its vision calls are billed. Skipped for plaintext."),
65136
65144
  figureInstructions: exports_external.string().optional().describe('Custom instruction for the figure-description pass, e.g. "Describe each figure; label a handwritten signature as `<figure>signature</figure>` and a stamp as `<figure>stamp</figure>`; for property photos note the room or exterior shown." Applied only when describeFigures runs.')
65137
65145
  });
65138
- AiParseOutputSchema = exports_external.object({
65139
- text: exports_external.string().describe("Extracted text content (combined from all pages)"),
65140
- pages: exports_external.array(exports_external.object({
65141
- pageIndex: exports_external.number().describe("0-based page index"),
65142
- text: exports_external.string().describe("Extracted text for this page"),
65143
- pageName: exports_external.string().optional().describe("Page/sheet name (e.g., Excel sheet name)"),
65144
- confidence: exports_external.number().optional().describe("Overall page confidence")
65145
- })).optional().describe("Per-page content"),
65146
- metadata: exports_external.record(exports_external.string(), exports_external.unknown()).optional().describe("Document metadata")
65147
- });
65146
+ AiParseOutputSchema = ParseResultSchema.omit({ rawResponse: true });
65148
65147
  AiExtractConfigSchema = exports_external.object({
65149
65148
  input: exports_external.string().describe("Text content or template expression"),
65150
65149
  schema: exports_external.object({
@@ -184657,7 +184656,7 @@ import { fileURLToPath as fileURLToPath9 } from "url";
184657
184656
  // package.json
184658
184657
  var package_default = {
184659
184658
  name: "@eigenpal/cli",
184660
- version: "0.10.43",
184659
+ version: "0.10.45",
184661
184660
  description: "Eigenpal CLI — author and run document workflows from your terminal. Agent-ready.",
184662
184661
  keywords: [
184663
184662
  "eigenpal",
@@ -365,8 +365,10 @@ Extract text from documents (PDF, DOCX, images) using OCR or vision models
365
365
  | Field | Type | Required | Default | Description |
366
366
  | --- | --- | --- | --- | --- |
367
367
  | `input` | string | yes | | Storage reference or template expression for the document |
368
+ | `parseMode` | `"ocr"` \| `"vision"` | no | | Base parser for PDF/image inputs. OCR is the default; vision uses the selected LLM. Text and Office files always use native parsing. |
368
369
  | `ocrModel` | string | no | | OCR provider ID for PDF/image parsing |
369
370
  | `llmModel` | string | no | | LLM provider ID for vision-based parsing |
371
+ | `figureModel` | string | no | | Vision model used only for the optional figure-description pass |
370
372
  | `maxConcurrency` | number | no | `3` | Max concurrent VLM batch requests |
371
373
  | `pagesPerBatch` | number | no | `5` | Number of page images per VLM request |
372
374
  | `pdfRenderScale` | number | no | `1` | Scale factor for rendering PDF pages before VLM parsing. Higher values produce sharper images at larger payload sizes. |
@@ -382,9 +384,14 @@ Extract text from documents (PDF, DOCX, images) using OCR or vision models
382
384
 
383
385
  | Field | Type | Required | Default | Description |
384
386
  | --- | --- | --- | --- | --- |
385
- | `text` | string | yes | | Extracted text content (combined from all pages) |
386
- | `pages` | array<object> | no | | Per-page content |
387
- | `metadata` | record<string, unknown> | no | | Document metadata |
387
+ | `document` | object | yes | | |
388
+ | `usage` | object | yes | | |
389
+ | `pages` | array<object> | yes | | |
390
+ | `text` | string | yes | | Combined text from all pages |
391
+ | `parserType` | `"plaintext"` \| `"office"` \| `"llm-vision"` \| `"ocr"` | yes | | |
392
+ | `parserVersion` | string | no | | |
393
+ | `model` | string | no | | Model used (for LLM/OCR parsers) |
394
+ | `structured` | record<string, unknown> | no | | Canonical structured document with ordered blocks, regions, bounding boxes, tables, figures, and chunks when supported by the parser |
388
395
 
389
396
  #### `ai.extract` — Extract Data
390
397
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eigenpal/cli",
3
- "version": "0.10.43",
3
+ "version": "0.10.45",
4
4
  "description": "Eigenpal CLI — author and run document workflows from your terminal. Agent-ready.",
5
5
  "keywords": [
6
6
  "eigenpal",