@sudobility/testomniac_runner 0.0.131 → 0.0.132

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/bun.lock CHANGED
@@ -8,8 +8,8 @@
8
8
  "@noble/curves": "^1.0.0",
9
9
  "@noble/hashes": "^1.0.0",
10
10
  "@sudobility/signic_sdk": "^0.1.7",
11
- "@sudobility/testomniac_runner_service": "^0.1.130",
12
- "@sudobility/testomniac_types": "^0.0.68",
11
+ "@sudobility/testomniac_runner_service": "^0.1.131",
12
+ "@sudobility/testomniac_types": "^0.0.69",
13
13
  "hono": "^4.7.0",
14
14
  "jose": "^6.1.2",
15
15
  "openai": "^6.7.0",
@@ -172,9 +172,9 @@
172
172
 
173
173
  "@sudobility/signic_sdk": ["@sudobility/signic_sdk@0.1.7", "", {}, "sha512-5XSgHSVsmyrMQ/ui1nDywwzt9dbRCsaeJ5tX6mKw2ZXbTZ82OsMr+dqDyV9XV3pfy7IHRIZq73af5KBamx72Fw=="],
174
174
 
175
- "@sudobility/testomniac_runner_service": ["@sudobility/testomniac_runner_service@0.1.130", "", { "peerDependencies": { "@sudobility/testomniac_types": "^0.0.68", "openai": ">=6.0.0", "react": ">=18.0.0" }, "optionalPeers": ["openai", "react"] }, "sha512-C6I/8Zo/ZqBrOMXeiWqaAKEJIEdRI6xWvtRQoyYEtxuh51WN8CtbVyhPn5AEzDQJQTWa+RJllo9u0SxW0L/o1g=="],
175
+ "@sudobility/testomniac_runner_service": ["@sudobility/testomniac_runner_service@0.1.131", "", { "peerDependencies": { "@sudobility/testomniac_types": "^0.0.69", "openai": ">=6.0.0", "react": ">=18.0.0" }, "optionalPeers": ["openai", "react"] }, "sha512-1ZJk1EjCJlFVXJXhlU3MLNPL53VwUJ6yOq4O9qvkpEn4VoCBnZlmVNOjicVXZE0UEP2u32GUGvBNEUHJGE5rFg=="],
176
176
 
177
- "@sudobility/testomniac_types": ["@sudobility/testomniac_types@0.0.68", "", { "peerDependencies": { "@sudobility/types": "^1.9.62" } }, "sha512-io3qbAuOLuCrjC4txkD+B21n/RGrfz2MH+W0XciAOkaxcfXagdHRUdWie/520HeItC9F91jP9SA67YAcx5aZ0A=="],
177
+ "@sudobility/testomniac_types": ["@sudobility/testomniac_types@0.0.69", "", { "peerDependencies": { "@sudobility/types": "^1.9.62" } }, "sha512-VkWcWdy4zwddCZspzc0qhHIqyfuuzyMUh6Dvjk614y8+A8GQ8N6D9AiNmFtqrDOoMEnfo9VNU8AvdJGOjjc/1A=="],
178
178
 
179
179
  "@sudobility/types": ["@sudobility/types@1.9.61", "", {}, "sha512-SODGpstB/iKfK3H/4BvJx/FBcc1h3gutUjGotyxN19VnOfWyzaDoEmW7eyoxOAYhZyXMXagSiii+NIEZvuxKog=="],
180
180
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sudobility/testomniac_runner",
3
- "version": "0.0.131",
3
+ "version": "0.0.132",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -24,8 +24,8 @@
24
24
  "@noble/curves": "^1.0.0",
25
25
  "@noble/hashes": "^1.0.0",
26
26
  "@sudobility/signic_sdk": "^0.1.7",
27
- "@sudobility/testomniac_runner_service": "^0.1.130",
28
- "@sudobility/testomniac_types": "^0.0.68",
27
+ "@sudobility/testomniac_runner_service": "^0.1.131",
28
+ "@sudobility/testomniac_types": "^0.0.69",
29
29
  "hono": "^4.7.0",
30
30
  "jose": "^6.1.2",
31
31
  "openai": "^6.7.0",
@@ -63,7 +63,12 @@ export async function runFullScan(options: RunOptions): Promise<void> {
63
63
  const page = await chromium.newPage(defaultScreen);
64
64
  const adapter = new PuppeteerAdapter(page);
65
65
 
66
- const eventHandler: ScanEventHandler = {
66
+ const eventHandler: ScanEventHandler & {
67
+ onStatusUpdate?: (update: {
68
+ message: string;
69
+ testRunId?: number;
70
+ }) => void;
71
+ } = {
67
72
  onPageFound: p =>
68
73
  logger.info(
69
74
  { relativePath: p.relativePath, pageId: p.pageId },
@@ -89,6 +94,8 @@ export async function runFullScan(options: RunOptions): Promise<void> {
89
94
  onFindingCreated: f =>
90
95
  logger.warn({ type: f.type, title: f.title }, "finding created"),
91
96
  onStatsUpdated: stats => logger.debug(stats, "stats updated"),
97
+ onStatusUpdate: update =>
98
+ logger.info({ testRunId: update.testRunId }, update.message),
92
99
  onScreenshotCaptured: () => {},
93
100
  onScanComplete: summary => logger.info(summary, "scan complete"),
94
101
  onError: err => logger.error(err, "scan error"),
@@ -177,7 +184,12 @@ export async function runSequenceScan(
177
184
  const adapter = new PuppeteerAdapter(page);
178
185
  const expertises = createDefaultExpertises();
179
186
 
180
- const eventHandler: ScanEventHandler = {
187
+ const eventHandler: ScanEventHandler & {
188
+ onStatusUpdate?: (update: {
189
+ message: string;
190
+ testRunId?: number;
191
+ }) => void;
192
+ } = {
181
193
  onPageFound: p => logger.info(p, "page found"),
182
194
  onPageStateCreated: s => logger.info(s, "page state created"),
183
195
  onTestSurfaceCreated: s => logger.info(s, "surface created"),
@@ -186,6 +198,8 @@ export async function runSequenceScan(
186
198
  onTestRunCompleted: r => logger.info(r, "run completed"),
187
199
  onFindingCreated: f => logger.warn(f, "finding created"),
188
200
  onStatsUpdated: s => logger.debug(s, "stats"),
201
+ onStatusUpdate: update =>
202
+ logger.info({ testRunId: update.testRunId }, update.message),
189
203
  onScreenshotCaptured: () => {},
190
204
  onScanComplete: s => logger.info(s, "complete"),
191
205
  onError: e => logger.error(e, "error"),