@eigenpal/cli 0.16.0 → 0.16.2

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.
@@ -1406,6 +1406,102 @@ This JSON Schema is generated from the same Zod schema used to parse workflow YA
1406
1406
  ],
1407
1407
  "additionalProperties": false
1408
1408
  },
1409
+ {
1410
+ "type": "object",
1411
+ "properties": {
1412
+ "type": {
1413
+ "type": "string",
1414
+ "const": "control.human_review"
1415
+ },
1416
+ "name": {
1417
+ "type": "string",
1418
+ "minLength": 1
1419
+ },
1420
+ "description": {
1421
+ "type": "string"
1422
+ },
1423
+ "if": {
1424
+ "type": "string"
1425
+ },
1426
+ "timeout": {
1427
+ "type": "number",
1428
+ "exclusiveMinimum": 0
1429
+ },
1430
+ "retry": {
1431
+ "anyOf": [
1432
+ {
1433
+ "type": "string",
1434
+ "const": "inherit"
1435
+ },
1436
+ {
1437
+ "type": "string",
1438
+ "const": "automatic"
1439
+ },
1440
+ {
1441
+ "type": "string",
1442
+ "const": "never"
1443
+ },
1444
+ {
1445
+ "oneOf": [
1446
+ {
1447
+ "type": "object",
1448
+ "properties": {
1449
+ "mode": {
1450
+ "type": "string",
1451
+ "const": "automatic"
1452
+ },
1453
+ "maxAttempts": {
1454
+ "type": "integer",
1455
+ "minimum": 1,
1456
+ "maximum": 10
1457
+ }
1458
+ },
1459
+ "required": [
1460
+ "mode"
1461
+ ],
1462
+ "additionalProperties": false
1463
+ },
1464
+ {
1465
+ "type": "object",
1466
+ "properties": {
1467
+ "mode": {
1468
+ "type": "string",
1469
+ "const": "never"
1470
+ }
1471
+ },
1472
+ "required": [
1473
+ "mode"
1474
+ ],
1475
+ "additionalProperties": false
1476
+ }
1477
+ ]
1478
+ }
1479
+ ]
1480
+ },
1481
+ "retries": {
1482
+ "type": "integer",
1483
+ "minimum": 0,
1484
+ "maximum": 9007199254740991
1485
+ },
1486
+ "retryDelay": {
1487
+ "type": "number",
1488
+ "exclusiveMinimum": 0
1489
+ },
1490
+ "with": {
1491
+ "type": "object",
1492
+ "propertyNames": {
1493
+ "type": "string"
1494
+ },
1495
+ "additionalProperties": {}
1496
+ }
1497
+ },
1498
+ "required": [
1499
+ "type",
1500
+ "name",
1501
+ "with"
1502
+ ],
1503
+ "additionalProperties": false
1504
+ },
1409
1505
  {
1410
1506
  "type": "object",
1411
1507
  "properties": {
@@ -0,0 +1,60 @@
1
+ name: __NAME__
2
+ version: 1.0.0
3
+ description: Extract invoice fields, then pause only when confidence is below threshold.
4
+
5
+ triggerMethods:
6
+ - type: api
7
+
8
+ inputs:
9
+ - name: document
10
+ type: file
11
+ description: Invoice PDF or image
12
+
13
+ steps:
14
+ - name: parse
15
+ type: ai.parse
16
+ with:
17
+ input: '{{ input.document }}'
18
+
19
+ - name: extract
20
+ type: ai.extract
21
+ with:
22
+ input: '{{ steps.parse.output.text }}'
23
+ schema:
24
+ type: object
25
+ properties:
26
+ vendor:
27
+ type: string
28
+ total:
29
+ type: number
30
+ currency:
31
+ type: string
32
+ required: [vendor, total, currency]
33
+ additionalProperties: false
34
+
35
+ - name: review-exceptions
36
+ type: control.human_review
37
+ with:
38
+ data: '{{ steps.extract.output }}'
39
+ instructions: Confirm low-confidence totals before posting.
40
+ selection:
41
+ mode: confidence
42
+ threshold: 0.85
43
+ missingConfidence: review
44
+ fieldMetadata:
45
+ /vendor:
46
+ confidence: 0.98
47
+ label: Vendor
48
+ /total:
49
+ confidence: 0.42
50
+ label: Invoice total
51
+ /currency:
52
+ confidence: 0.99
53
+ label: Currency
54
+ files:
55
+ includeRunInputs: true
56
+
57
+ output:
58
+ vendor: '{{ steps.review-exceptions.output.vendor }}'
59
+ total: '{{ steps.review-exceptions.output.total }}'
60
+ currency: '{{ steps.review-exceptions.output.currency }}'
@@ -0,0 +1,62 @@
1
+ name: __NAME__
2
+ version: 1.0.0
3
+ description: Extract payment fields, then require explicit review of critical paths only.
4
+
5
+ triggerMethods:
6
+ - type: api
7
+
8
+ inputs:
9
+ - name: document
10
+ type: file
11
+ description: Invoice PDF or image
12
+
13
+ steps:
14
+ - name: parse
15
+ type: ai.parse
16
+ with:
17
+ input: '{{ input.document }}'
18
+
19
+ - name: extract
20
+ type: ai.extract
21
+ with:
22
+ input: '{{ steps.parse.output.text }}'
23
+ schema:
24
+ type: object
25
+ properties:
26
+ vendor:
27
+ type: string
28
+ total:
29
+ type: number
30
+ iban:
31
+ type: string
32
+ reference:
33
+ type: string
34
+ required: [vendor, total, iban, reference]
35
+ additionalProperties: false
36
+
37
+ - name: review-critical-fields
38
+ type: control.human_review
39
+ with:
40
+ data: '{{ steps.extract.output }}'
41
+ instructions: Confirm payment amount and beneficiary IBAN before release.
42
+ selection:
43
+ mode: explicit
44
+ include:
45
+ - /total
46
+ - /iban
47
+ fieldMetadata:
48
+ /total:
49
+ label: Invoice total
50
+ review: always
51
+ /iban:
52
+ label: Beneficiary IBAN
53
+ /vendor:
54
+ label: Vendor
55
+ files:
56
+ includeRunInputs: true
57
+
58
+ output:
59
+ vendor: '{{ steps.review-critical-fields.output.vendor }}'
60
+ total: '{{ steps.review-critical-fields.output.total }}'
61
+ iban: '{{ steps.review-critical-fields.output.iban }}'
62
+ reference: '{{ steps.review-critical-fields.output.reference }}'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eigenpal/cli",
3
- "version": "0.16.0",
3
+ "version": "0.16.2",
4
4
  "description": "Eigenpal CLI — author and run document workflows from your terminal. Agent-ready.",
5
5
  "keywords": [
6
6
  "eigenpal",