fix(tests): enable progress events in invoice tests and bump @push.rocks/smartagent devDependency to ^1.5.4

This commit is contained in:
2026-01-20 03:19:58 +00:00
parent da2b827ba3
commit 969d21c51a
4 changed files with 16 additions and 6 deletions

View File

@@ -1,5 +1,11 @@
# Changelog
## 2026-01-20 - 1.15.1 - fix(tests)
enable progress events in invoice tests and bump @push.rocks/smartagent devDependency to ^1.5.4
- Added an onProgress handler in test/test.invoices.nanonets.ts to log progress events (console.log(event.logMessage)) so tool calls and progress are visible during tests.
- Bumped devDependency @push.rocks/smartagent from ^1.5.2 to ^1.5.4 in package.json.
## 2026-01-20 - 1.15.0 - feat(tests)
integrate SmartAi/DualAgentOrchestrator into extraction tests and add JSON self-validation

View File

@@ -15,7 +15,7 @@
"devDependencies": {
"@git.zone/tsrun": "^2.0.1",
"@git.zone/tstest": "^3.1.5",
"@push.rocks/smartagent": "^1.5.2",
"@push.rocks/smartagent": "^1.5.4",
"@push.rocks/smartai": "^0.13.2"
},
"repository": {

10
pnpm-lock.yaml generated
View File

@@ -19,8 +19,8 @@ importers:
specifier: ^3.1.5
version: 3.1.6(socks@2.8.7)(typescript@5.9.3)
'@push.rocks/smartagent':
specifier: ^1.5.2
version: 1.5.2(typescript@5.9.3)(ws@8.19.0)(zod@3.25.76)
specifier: ^1.5.4
version: 1.5.4(typescript@5.9.3)(ws@8.19.0)(zod@3.25.76)
'@push.rocks/smartai':
specifier: ^0.13.2
version: 0.13.2(typescript@5.9.3)(ws@8.19.0)(zod@3.25.76)
@@ -868,8 +868,8 @@ packages:
'@push.rocks/qenv@6.1.3':
resolution: {integrity: sha512-+z2hsAU/7CIgpYLFqvda8cn9rUBMHqLdQLjsFfRn5jPoD7dJ5rFlpkbhfM4Ws8mHMniwWaxGKo+q/YBhtzRBLg==}
'@push.rocks/smartagent@1.5.2':
resolution: {integrity: sha512-zSZJH4DiimA4P6YzolpQxrrLLtkvrFDD+oEmY7ygGy8tbKucOAkdnAHjLPdmWQXt0xvZ+P0wAwRiFg5i/fIagw==}
'@push.rocks/smartagent@1.5.4':
resolution: {integrity: sha512-W5DoG0MUY6oAvxMcMC0M0ZmMmjs6zs8WcDnz5jVcg74vD3oaSguJjcokjB4L4Tv1dzEhq0ArDOnaC2C0Lf3z7w==}
'@push.rocks/smartai@0.13.2':
resolution: {integrity: sha512-FqnHh31tU0Nkr/g25UMAjjE7gZVN8cuioRlSq1xo19rS9kyMiux+UzpylO2tgXF5S+lTsw5cGtfP0BUfrxlTGg==}
@@ -5206,7 +5206,7 @@ snapshots:
'@push.rocks/smartlog': 3.1.10
'@push.rocks/smartpath': 6.0.0
'@push.rocks/smartagent@1.5.2(typescript@5.9.3)(ws@8.19.0)(zod@3.25.76)':
'@push.rocks/smartagent@1.5.4(typescript@5.9.3)(ws@8.19.0)(zod@3.25.76)':
dependencies:
'@push.rocks/smartai': 0.13.2(typescript@5.9.3)(ws@8.19.0)(zod@3.25.76)
'@push.rocks/smartbrowser': 2.0.8(typescript@5.9.3)

View File

@@ -665,6 +665,10 @@ CRITICAL RULES:
process.stdout.write(token);
}
},
// Enable progress events to see tool calls
onProgress: (event: { logMessage: string }) => {
console.log(event.logMessage);
},
});
// Register JsonValidatorTool for self-validation