2 Commits

Author SHA1 Message Date
2bdcc74df0 v1.15.2
Some checks failed
Docker (tags) / security (push) Successful in 30s
Docker (tags) / test (push) Failing after 7m38s
Docker (tags) / release (push) Has been skipped
Docker (tags) / metadata (push) Has been skipped
2026-01-20 04:12:57 +00:00
981c031c6e fix(dev-deps): bump devDependencies @push.rocks/smartagent to ^1.6.2 and @push.rocks/smartai to ^0.13.3 2026-01-20 04:12:57 +00:00
4 changed files with 24 additions and 16 deletions

View File

@@ -1,5 +1,13 @@
# Changelog # Changelog
## 2026-01-20 - 1.15.2 - fix(dev-deps)
bump devDependencies @push.rocks/smartagent to ^1.6.2 and @push.rocks/smartai to ^0.13.3
- Bumped @push.rocks/smartagent from ^1.5.4 to ^1.6.2 in devDependencies
- Bumped @push.rocks/smartai from ^0.13.2 to ^0.13.3 in devDependencies
- Updated test/test.invoices.nanonets.ts JSON extraction prompt: instruct not to omit special characters in invoice_number and to use the json validate tool
- No breaking changes; only dev dependency updates and test prompt adjustments
## 2026-01-20 - 1.15.1 - fix(tests) ## 2026-01-20 - 1.15.1 - fix(tests)
enable progress events in invoice tests and bump @push.rocks/smartagent devDependency to ^1.5.4 enable progress events in invoice tests and bump @push.rocks/smartagent devDependency to ^1.5.4

View File

@@ -1,6 +1,6 @@
{ {
"name": "@host.today/ht-docker-ai", "name": "@host.today/ht-docker-ai",
"version": "1.15.1", "version": "1.15.2",
"type": "module", "type": "module",
"private": false, "private": false,
"description": "Docker images for AI vision-language models including MiniCPM-V 4.5", "description": "Docker images for AI vision-language models including MiniCPM-V 4.5",
@@ -15,8 +15,8 @@
"devDependencies": { "devDependencies": {
"@git.zone/tsrun": "^2.0.1", "@git.zone/tsrun": "^2.0.1",
"@git.zone/tstest": "^3.1.5", "@git.zone/tstest": "^3.1.5",
"@push.rocks/smartagent": "^1.5.4", "@push.rocks/smartagent": "^1.6.2",
"@push.rocks/smartai": "^0.13.2" "@push.rocks/smartai": "^0.13.3"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

22
pnpm-lock.yaml generated
View File

@@ -19,11 +19,11 @@ importers:
specifier: ^3.1.5 specifier: ^3.1.5
version: 3.1.6(socks@2.8.7)(typescript@5.9.3) version: 3.1.6(socks@2.8.7)(typescript@5.9.3)
'@push.rocks/smartagent': '@push.rocks/smartagent':
specifier: ^1.5.4 specifier: ^1.6.2
version: 1.5.4(typescript@5.9.3)(ws@8.19.0)(zod@3.25.76) version: 1.6.2(typescript@5.9.3)(ws@8.19.0)(zod@3.25.76)
'@push.rocks/smartai': '@push.rocks/smartai':
specifier: ^0.13.2 specifier: ^0.13.3
version: 0.13.2(typescript@5.9.3)(ws@8.19.0)(zod@3.25.76) version: 0.13.3(typescript@5.9.3)(ws@8.19.0)(zod@3.25.76)
packages: packages:
@@ -868,11 +868,11 @@ packages:
'@push.rocks/qenv@6.1.3': '@push.rocks/qenv@6.1.3':
resolution: {integrity: sha512-+z2hsAU/7CIgpYLFqvda8cn9rUBMHqLdQLjsFfRn5jPoD7dJ5rFlpkbhfM4Ws8mHMniwWaxGKo+q/YBhtzRBLg==} resolution: {integrity: sha512-+z2hsAU/7CIgpYLFqvda8cn9rUBMHqLdQLjsFfRn5jPoD7dJ5rFlpkbhfM4Ws8mHMniwWaxGKo+q/YBhtzRBLg==}
'@push.rocks/smartagent@1.5.4': '@push.rocks/smartagent@1.6.2':
resolution: {integrity: sha512-W5DoG0MUY6oAvxMcMC0M0ZmMmjs6zs8WcDnz5jVcg74vD3oaSguJjcokjB4L4Tv1dzEhq0ArDOnaC2C0Lf3z7w==} resolution: {integrity: sha512-JaYZ7tRbmS0fVrF73Z+RF9plJ/Va0H+81zvEACT8YZRf+WhhIT+P7kKh7IcTRrgudtA7aw6eVXUmOGCMeszm3Q==}
'@push.rocks/smartai@0.13.2': '@push.rocks/smartai@0.13.3':
resolution: {integrity: sha512-FqnHh31tU0Nkr/g25UMAjjE7gZVN8cuioRlSq1xo19rS9kyMiux+UzpylO2tgXF5S+lTsw5cGtfP0BUfrxlTGg==} resolution: {integrity: sha512-VDZzHs101hpGMmUaectuLfcME4kHpuOS7o5ffuGk5lYl383foyAN71+5v441jpk/gLDNf2KhDACR/d2O4n90Ag==}
'@push.rocks/smartarchive@5.2.1': '@push.rocks/smartarchive@5.2.1':
resolution: {integrity: sha512-TNv5q6QuBRX7jrzffiyb6A8AALNAr0kyAcJswa0l3ahBP1Q6zszNo9xOVXmW2gKX2KShtO/Y+Cn0i46n8lbnaQ==} resolution: {integrity: sha512-TNv5q6QuBRX7jrzffiyb6A8AALNAr0kyAcJswa0l3ahBP1Q6zszNo9xOVXmW2gKX2KShtO/Y+Cn0i46n8lbnaQ==}
@@ -5206,9 +5206,9 @@ snapshots:
'@push.rocks/smartlog': 3.1.10 '@push.rocks/smartlog': 3.1.10
'@push.rocks/smartpath': 6.0.0 '@push.rocks/smartpath': 6.0.0
'@push.rocks/smartagent@1.5.4(typescript@5.9.3)(ws@8.19.0)(zod@3.25.76)': '@push.rocks/smartagent@1.6.2(typescript@5.9.3)(ws@8.19.0)(zod@3.25.76)':
dependencies: dependencies:
'@push.rocks/smartai': 0.13.2(typescript@5.9.3)(ws@8.19.0)(zod@3.25.76) '@push.rocks/smartai': 0.13.3(typescript@5.9.3)(ws@8.19.0)(zod@3.25.76)
'@push.rocks/smartbrowser': 2.0.8(typescript@5.9.3) '@push.rocks/smartbrowser': 2.0.8(typescript@5.9.3)
'@push.rocks/smartdeno': 1.2.0 '@push.rocks/smartdeno': 1.2.0
'@push.rocks/smartfs': 1.3.1 '@push.rocks/smartfs': 1.3.1
@@ -5230,7 +5230,7 @@ snapshots:
- ws - ws
- zod - zod
'@push.rocks/smartai@0.13.2(typescript@5.9.3)(ws@8.19.0)(zod@3.25.76)': '@push.rocks/smartai@0.13.3(typescript@5.9.3)(ws@8.19.0)(zod@3.25.76)':
dependencies: dependencies:
'@anthropic-ai/sdk': 0.71.2(zod@3.25.76) '@anthropic-ai/sdk': 0.71.2(zod@3.25.76)
'@mistralai/mistralai': 1.12.0 '@mistralai/mistralai': 1.12.0

View File

@@ -78,7 +78,7 @@ Page numbers should be wrapped in brackets. Ex: <page_number>14</page_number>.`;
const JSON_EXTRACTION_PROMPT = `Extract key fields from the invoice. Return ONLY valid JSON. const JSON_EXTRACTION_PROMPT = `Extract key fields from the invoice. Return ONLY valid JSON.
WHERE TO FIND DATA: WHERE TO FIND DATA:
- invoice_number, invoice_date, vendor_name: Look in the HEADER section at the TOP of PAGE 1 (near "Invoice no.", "Invoice date:", "Rechnungsnummer"). Use common sense. Btw. an invoice number might start on INV* . - invoice_number, invoice_date, vendor_name: Look in the HEADER section at the TOP of PAGE 1 (near "Invoice no.", "Invoice date:", "Rechnungsnummer"). Use common sense. Btw. an invoice number might start on INV* . Also be sure to not omit special chars like / - and sp on. They are part of the invoice number.
- net_amount, vat_amount, total_amount: Look in the SUMMARY section at the BOTTOM (look for "Total", "Amount due", "Gesamtbetrag") - net_amount, vat_amount, total_amount: Look in the SUMMARY section at the BOTTOM (look for "Total", "Amount due", "Gesamtbetrag")
RULES: RULES:
@@ -93,7 +93,7 @@ RULES:
JSON only: JSON only:
{"invoice_number":"X","invoice_date":"YYYY-MM-DD","vendor_name":"X","currency":"EUR","net_amount":0,"vat_amount":0,"total_amount":0} {"invoice_number":"X","invoice_date":"YYYY-MM-DD","vendor_name":"X","currency":"EUR","net_amount":0,"vat_amount":0,"total_amount":0}
Double check for valid JSON syntax. Double check for valid JSON syntax. use the json validate tool.
`; `;