@sudobility/testomniac_runner 0.0.172 → 0.0.173

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.166",
12
- "@sudobility/testomniac_types": "^0.0.80",
11
+ "@sudobility/testomniac_runner_service": "^0.1.167",
12
+ "@sudobility/testomniac_types": "^0.0.81",
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.166", "", { "peerDependencies": { "@sudobility/testomniac_types": "^0.0.80" } }, "sha512-FPSuTOSAQN77SAnhxw/FAXk7HZp6yshmcmDjo8DTt3bRzx2xMzt0cmoftjoIUtfapmFLXr68GpqJs6+H6KbgHQ=="],
175
+ "@sudobility/testomniac_runner_service": ["@sudobility/testomniac_runner_service@0.1.167", "", { "peerDependencies": { "@sudobility/testomniac_types": "^0.0.81" } }, "sha512-6g1yTH1gQ3DJvIjlivDtgD0nSDcnV98o+6x1x1hvn2BwkkNgEulhbO/G3D4UVdB8jjIQ3hQYQEypgYsfHIh0DA=="],
176
176
 
177
- "@sudobility/testomniac_types": ["@sudobility/testomniac_types@0.0.80", "", { "peerDependencies": { "@sudobility/types": "^1.9.62" } }, "sha512-BugxR1yC5pSN97lN+bMz+mD87or+7dNHX+Qsof2QQHrYszPpuKjWNTYwQW2wma7ekUqWgykOU3iNDq+wC0KNQw=="],
177
+ "@sudobility/testomniac_types": ["@sudobility/testomniac_types@0.0.81", "", { "peerDependencies": { "@sudobility/types": "^1.9.62" } }, "sha512-jYeE1TwSFNhY1j+ZdVSGno61+5uAgMg0AVeyUkKF3UAXyUa5eABK46mPZb2fa3MvgoAyDWOWPvn8WsmoInfFcA=="],
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.172",
3
+ "version": "0.0.173",
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.166",
28
- "@sudobility/testomniac_types": "^0.0.80",
27
+ "@sudobility/testomniac_runner_service": "^0.1.167",
28
+ "@sudobility/testomniac_types": "^0.0.81",
29
29
  "hono": "^4.7.0",
30
30
  "jose": "^6.1.2",
31
31
  "openai": "^6.7.0",
@@ -220,9 +220,16 @@ export class RunnerManager {
220
220
  logger.info({ runId: params.runId }, "run completed successfully");
221
221
  } catch (error) {
222
222
  logger.error({ err: error, runId: params.runId }, "claimed run failed");
223
+ // runTestRun() already closes a failed run out through /scan/end on its
224
+ // own error path. Use scanEnd here too (idempotent) rather than the legacy
225
+ // completeTestRun, which would reintroduce the old completion path and
226
+ // clobber the server-side closeout. This stays purely as a backstop for
227
+ // the rare case the inner service threw before owning closeout.
223
228
  try {
224
- await api.completeTestRun(params.runId, {
229
+ await api.scanEnd({
230
+ testRunId: params.runId,
225
231
  status: "failed",
232
+ runDetection: false,
226
233
  });
227
234
  } catch (completeError) {
228
235
  logger.error(