@eigenpal/cli 0.16.1 → 0.16.3

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.
@@ -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.1",
3
+ "version": "0.16.3",
4
4
  "description": "Eigenpal CLI — author and run document workflows from your terminal. Agent-ready.",
5
5
  "keywords": [
6
6
  "eigenpal",