@rstest/core 0.9.1 → 0.9.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.
Files changed (54) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/{0~89.js → 0~8843.js} +24 -28
  3. package/dist/{0~1472.js → 0~browserLoader.js} +11 -11
  4. package/dist/{0~7882.js → 0~browser~1.js} +60 -61
  5. package/dist/{0~8426.js → 0~checkThresholds.js} +6 -6
  6. package/dist/{0~7583.js → 0~chokidar.js} +113 -72
  7. package/dist/{0~130.js → 0~console.js} +19 -20
  8. package/dist/{0~9744.js → 0~dist.js} +57 -57
  9. package/dist/{0~4403.js → 0~generate.js} +9 -6
  10. package/dist/{0~4809.js → 0~happyDom.js} +2 -2
  11. package/dist/{0~3346.js → 0~interop.js} +0 -1
  12. package/dist/{0~62.js → 0~jsdom.js} +2 -2
  13. package/dist/{0~262.js → 0~lib.js} +4 -1
  14. package/dist/{0~9634.js → 0~listTests.js} +15 -24
  15. package/dist/{0~6923.js → 0~loadEsModule.js} +7 -7
  16. package/dist/{0~5835.js → 0~loadModule.js} +11 -11
  17. package/dist/{0~6907.js → 0~magic-string.es.js} +2 -1
  18. package/dist/0~mergeReports.js +127 -0
  19. package/dist/{0~2255.js → 0~plugin.js} +2 -4
  20. package/dist/{0~6588.js → 0~restart.js} +8 -12
  21. package/dist/{0~2173.js → 0~runTests.js} +51 -60
  22. package/dist/{487.js → 1255.js} +22 -15
  23. package/dist/{6151.js → 1949.js} +41 -25
  24. package/dist/{6973.js → 255.js} +9 -10
  25. package/dist/{9131.js → 3145.js} +229 -479
  26. package/dist/{1157.js → 4411.js} +37 -37
  27. package/dist/{4484.js → 5040.js} +1 -2
  28. package/dist/{3160.js → 6830.js} +429 -106
  29. package/dist/7011.js +1 -1
  30. package/dist/{1294.js → 7552.js} +106 -83
  31. package/dist/{5734.js → 7704.js} +7 -6
  32. package/dist/browser-runtime/{2~907.js → 2~magic-string.es.js} +18 -11
  33. package/dist/browser-runtime/{389.js → 723.js} +178 -134
  34. package/dist/browser-runtime/{389.js.LICENSE.txt → 723.js.LICENSE.txt} +0 -22
  35. package/dist/browser-runtime/index.d.ts +40 -5
  36. package/dist/browser-runtime/index.js +1 -1
  37. package/dist/browser-runtime/rslib-runtime.js +11 -3
  38. package/dist/browser.d.ts +40 -5
  39. package/dist/browser.js +9 -7
  40. package/dist/globalSetupWorker.js +7 -14
  41. package/dist/index.d.ts +53 -6
  42. package/dist/index.js +2 -2
  43. package/dist/rslib-runtime.js +5 -8
  44. package/dist/worker.d.ts +30 -3
  45. package/dist/worker.js +20 -46
  46. package/package.json +19 -18
  47. package/dist/3160.js.LICENSE.txt +0 -21
  48. package/dist/4881.js +0 -2
  49. package/dist/6198.js +0 -2
  50. /package/dist/{0~7583.js.LICENSE.txt → 0~chokidar.js.LICENSE.txt} +0 -0
  51. /package/dist/{0~3062.js → 0~utils.js} +0 -0
  52. /package/dist/{6151.js.LICENSE.txt → 1949.js.LICENSE.txt} +0 -0
  53. /package/dist/{4597.js → 1983.js} +0 -0
  54. /package/dist/{1294.js.LICENSE.txt → 7552.js.LICENSE.txt} +0 -0
@@ -1,12 +1,9 @@
1
- /*! For license information please see 3160.js.LICENSE.txt */
2
1
  import "node:module";
3
- import * as __rspack_external_node_fs_5ea92f0c from "node:fs";
4
- import * as __rspack_external_node_os_74b4b876 from "node:os";
5
- import * as __rspack_external_node_path_c5b9b54f from "node:path";
6
- import * as __rspack_external_node_tty_c64aab7e from "node:tty";
7
- import * as __rspack_external_node_util_1b29d436 from "node:util";
8
2
  import { __webpack_require__ } from "./rslib-runtime.js";
9
- import node_process, { stdin, stdout } from "node:process";
3
+ import node_util from "node:util";
4
+ import node_process from "node:process";
5
+ import node_os from "node:os";
6
+ import node_tty from "node:tty";
10
7
  __webpack_require__.add({
11
8
  "../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js" (module) {
12
9
  let p = process || {}, argv = p.argv || [], env = p.env || {};
@@ -73,34 +70,31 @@ __webpack_require__.add({
73
70
  };
74
71
  module.exports = createColors();
75
72
  module.exports.createColors = createColors;
76
- },
77
- "node:fs" (module) {
78
- module.exports = __rspack_external_node_fs_5ea92f0c;
79
- },
80
- "node:os" (module) {
81
- module.exports = __rspack_external_node_os_74b4b876;
82
- },
83
- path (module) {
84
- module.exports = __rspack_external_node_path_c5b9b54f;
85
- },
86
- "node:tty" (module) {
87
- module.exports = __rspack_external_node_tty_c64aab7e;
88
- },
89
- "node:util" (module) {
90
- module.exports = __rspack_external_node_util_1b29d436;
91
73
  }
92
74
  });
93
- const external_node_util_ = __webpack_require__("node:util");
94
- const external_node_os_ = __webpack_require__("node:os");
95
- const external_node_tty_ = __webpack_require__("node:tty");
96
- const createStyler = (style)=>(text)=>(0, external_node_util_.styleText)(style, String(text));
97
- const bold = createStyler('bold');
98
- const red = createStyler('red');
99
- const green = createStyler('green');
100
- const yellow = createStyler('yellow');
101
- const magenta = createStyler('magenta');
102
- const cyan = createStyler('cyan');
103
- const gray = createStyler('gray');
75
+ function checkNodeVersion() {
76
+ const { versions } = process;
77
+ if ("styleText" in node_util || !versions.node || versions.bun || versions.deno) return;
78
+ throw new Error(`Unsupported Node.js version: "${process.versions.node || 'unknown'}". Expected Node.js >= 20.`);
79
+ }
80
+ checkNodeVersion();
81
+ const createStyler = (style)=>(text)=>node_util.styleText(style, String(text));
82
+ const color = {
83
+ dim: createStyler('dim'),
84
+ red: createStyler('red'),
85
+ bold: createStyler('bold'),
86
+ blue: createStyler('blue'),
87
+ cyan: createStyler('cyan'),
88
+ gray: createStyler('gray'),
89
+ black: createStyler('black'),
90
+ green: createStyler('green'),
91
+ white: createStyler('white'),
92
+ reset: createStyler('reset'),
93
+ yellow: createStyler('yellow'),
94
+ magenta: createStyler('magenta'),
95
+ underline: createStyler('underline'),
96
+ strikethrough: createStyler('strikethrough')
97
+ };
104
98
  function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : node_process.argv) {
105
99
  const prefix = flag.startsWith('-') ? '' : 1 === flag.length ? '-' : '--';
106
100
  const position = argv.indexOf(prefix + flag);
@@ -148,7 +142,7 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
148
142
  const min = forceColor || 0;
149
143
  if ('dumb' === env.TERM) return min;
150
144
  if ('win32' === node_process.platform) {
151
- const osRelease = external_node_os_["default"].release().split('.');
145
+ const osRelease = node_os.release().split('.');
152
146
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
153
147
  return 1;
154
148
  }
@@ -195,10 +189,10 @@ function createSupportsColor(stream, options = {}) {
195
189
  }
196
190
  const supportsColor = {
197
191
  stdout: createSupportsColor({
198
- isTTY: external_node_tty_["default"].isatty(1)
192
+ isTTY: node_tty.isatty(1)
199
193
  }),
200
194
  stderr: createSupportsColor({
201
- isTTY: external_node_tty_["default"].isatty(2)
195
+ isTTY: node_tty.isatty(2)
202
196
  })
203
197
  };
204
198
  const supports_color = supportsColor;
@@ -219,7 +213,7 @@ let endColor = [
219
213
  ];
220
214
  let isWord = (char)=>!/[\s\n]/.test(char);
221
215
  let gradient = (message)=>{
222
- if (colorLevel < 3) return 2 === colorLevel ? bold(cyan(message)) : message;
216
+ if (colorLevel < 3) return 2 === colorLevel ? color.cyan(message) : message;
223
217
  let chars = [
224
218
  ...message
225
219
  ];
@@ -239,7 +233,7 @@ let gradient = (message)=>{
239
233
  }
240
234
  output += `\x1b[38;2;${Math.round(r)};${Math.round(g)};${Math.round(b)}m${char}\x1b[39m`;
241
235
  }
242
- return bold(output);
236
+ return color.bold(output);
243
237
  };
244
238
  let LOG_LEVEL = {
245
239
  silent: -1,
@@ -253,32 +247,32 @@ let LOG_TYPES = {
253
247
  error: {
254
248
  label: 'error',
255
249
  level: 'error',
256
- color: red
250
+ color: color.red
257
251
  },
258
252
  warn: {
259
253
  label: 'warn',
260
254
  level: 'warn',
261
- color: yellow
255
+ color: color.yellow
262
256
  },
263
257
  info: {
264
258
  label: 'info',
265
259
  level: 'info',
266
- color: cyan
260
+ color: color.cyan
267
261
  },
268
262
  start: {
269
263
  label: 'start',
270
264
  level: 'info',
271
- color: cyan
265
+ color: color.cyan
272
266
  },
273
267
  ready: {
274
268
  label: 'ready',
275
269
  level: 'info',
276
- color: green
270
+ color: color.green
277
271
  },
278
272
  success: {
279
273
  label: 'success',
280
274
  level: 'info',
281
- color: green
275
+ color: color.green
282
276
  },
283
277
  log: {
284
278
  level: 'info'
@@ -286,14 +280,14 @@ let LOG_TYPES = {
286
280
  debug: {
287
281
  label: 'debug',
288
282
  level: 'verbose',
289
- color: magenta
283
+ color: color.magenta
290
284
  }
291
285
  };
292
286
  const normalizeErrorMessage = (err)=>{
293
287
  if (err.stack) {
294
288
  let [name, ...rest] = err.stack.split('\n');
295
289
  if (name.startsWith('Error: ')) name = name.slice(7);
296
- return `${name}\n${gray(rest.join('\n'))}`;
290
+ return `${name}\n${color.gray(rest.join('\n'))}`;
297
291
  }
298
292
  return err.message;
299
293
  };
@@ -308,18 +302,18 @@ let createLogger = (options = {})=>{
308
302
  let text = '';
309
303
  if ('label' in logType) {
310
304
  label = (logType.label || '').padEnd(7);
311
- label = bold(logType.color ? logType.color(label) : label);
305
+ label = color.bold(logType.color ? logType.color(label) : label);
312
306
  }
313
307
  if (message instanceof Error) {
314
308
  text += normalizeErrorMessage(message);
315
309
  const { cause } = message;
316
310
  if (cause) {
317
- text += yellow('\n [cause]: ');
311
+ text += color.yellow('\n [cause]: ');
318
312
  text += cause instanceof Error ? normalizeErrorMessage(cause) : String(cause);
319
313
  }
320
314
  } else if ('error' === level && 'string' == typeof message) {
321
315
  let lines = message.split('\n');
322
- text = lines.map((line)=>isErrorStackMessage(line) ? gray(line) : line).join('\n');
316
+ text = lines.map((line)=>isErrorStackMessage(line) ? color.gray(line) : line).join('\n');
323
317
  } else text = `${message}`;
324
318
  const method = 'error' === level || 'warn' === level ? level : 'log';
325
319
  console[method](label.length ? `${label} ${text}` : text, ...args);
@@ -342,67 +336,396 @@ let createLogger = (options = {})=>{
342
336
  return logger;
343
337
  };
344
338
  let src_logger = createLogger();
345
- const CURSOR_CLI = 'cursor-cli';
346
- const CLAUDE = 'claude';
347
- const REPLIT = 'replit';
348
- const GEMINI = 'gemini';
349
- const CODEX = 'codex';
350
- const AUGMENT_CLI = 'augment-cli';
351
- const OPENCODE = 'opencode';
352
- function determineAgent() {
353
- if ('1' === process.env.RSTEST_NO_AGENT) return {
354
- isAgent: false,
355
- agent: void 0
339
+ const dist_e = globalThis.process?.env || Object.create(null), dist_t = globalThis.process || {
340
+ env: dist_e
341
+ }, dist_n = void 0 !== dist_t && dist_t.env && dist_t.env.NODE_ENV || void 0, dist_r = [
342
+ [
343
+ "claude",
344
+ [
345
+ "CLAUDECODE",
346
+ "CLAUDE_CODE"
347
+ ]
348
+ ],
349
+ [
350
+ "replit",
351
+ [
352
+ "REPL_ID"
353
+ ]
354
+ ],
355
+ [
356
+ "gemini",
357
+ [
358
+ "GEMINI_CLI"
359
+ ]
360
+ ],
361
+ [
362
+ "codex",
363
+ [
364
+ "CODEX_SANDBOX",
365
+ "CODEX_THREAD_ID"
366
+ ]
367
+ ],
368
+ [
369
+ "opencode",
370
+ [
371
+ "OPENCODE"
372
+ ]
373
+ ],
374
+ [
375
+ "pi",
376
+ [
377
+ dist_i("PATH", /\.pi[\\/]agent/)
378
+ ]
379
+ ],
380
+ [
381
+ "auggie",
382
+ [
383
+ "AUGMENT_AGENT"
384
+ ]
385
+ ],
386
+ [
387
+ "goose",
388
+ [
389
+ "GOOSE_PROVIDER"
390
+ ]
391
+ ],
392
+ [
393
+ "devin",
394
+ [
395
+ dist_i("EDITOR", /devin/)
396
+ ]
397
+ ],
398
+ [
399
+ "cursor",
400
+ [
401
+ "CURSOR_AGENT"
402
+ ]
403
+ ],
404
+ [
405
+ "kiro",
406
+ [
407
+ dist_i("TERM_PROGRAM", /kiro/)
408
+ ]
409
+ ]
410
+ ];
411
+ function dist_i(t, n) {
412
+ return ()=>{
413
+ let r = dist_e[t];
414
+ return r ? n.test(r) : !1;
356
415
  };
357
- if (process.env.AI_AGENT) {
358
- const name = process.env.AI_AGENT.trim();
359
- if (name) return {
360
- isAgent: true,
361
- agent: {
362
- name: name
363
- }
364
- };
365
- }
366
- if (process.env.CURSOR_AGENT) return {
367
- isAgent: true,
368
- agent: {
369
- name: CURSOR_CLI
370
- }
416
+ }
417
+ function dist_a() {
418
+ let t = dist_e.AI_AGENT;
419
+ if (t) return {
420
+ name: t.toLowerCase()
371
421
  };
372
- if (process.env.GEMINI_CLI) return {
373
- isAgent: true,
374
- agent: {
375
- name: GEMINI
376
- }
422
+ for (let [t, n] of dist_r)for (let r of n)if ("string" == typeof r ? dist_e[r] : r()) return {
423
+ name: t
377
424
  };
378
- if (process.env.CODEX_SANDBOX) return {
379
- isAgent: true,
380
- agent: {
381
- name: CODEX
425
+ return {};
426
+ }
427
+ const dist_o = dist_a(), dist_l = (dist_o.name, dist_o.name, [
428
+ [
429
+ "APPVEYOR"
430
+ ],
431
+ [
432
+ "AWS_AMPLIFY",
433
+ "AWS_APP_ID",
434
+ {
435
+ ci: !0
382
436
  }
383
- };
384
- if (process.env.AUGMENT_AGENT) return {
385
- isAgent: true,
386
- agent: {
387
- name: AUGMENT_CLI
437
+ ],
438
+ [
439
+ "AZURE_PIPELINES",
440
+ "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"
441
+ ],
442
+ [
443
+ "AZURE_STATIC",
444
+ "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"
445
+ ],
446
+ [
447
+ "APPCIRCLE",
448
+ "AC_APPCIRCLE"
449
+ ],
450
+ [
451
+ "BAMBOO",
452
+ "bamboo_planKey"
453
+ ],
454
+ [
455
+ "BITBUCKET",
456
+ "BITBUCKET_COMMIT"
457
+ ],
458
+ [
459
+ "BITRISE",
460
+ "BITRISE_IO"
461
+ ],
462
+ [
463
+ "BUDDY",
464
+ "BUDDY_WORKSPACE_ID"
465
+ ],
466
+ [
467
+ "BUILDKITE"
468
+ ],
469
+ [
470
+ "CIRCLE",
471
+ "CIRCLECI"
472
+ ],
473
+ [
474
+ "CIRRUS",
475
+ "CIRRUS_CI"
476
+ ],
477
+ [
478
+ "CLOUDFLARE_PAGES",
479
+ "CF_PAGES",
480
+ {
481
+ ci: !0
388
482
  }
389
- };
390
- if (process.env.OPENCODE) return {
391
- isAgent: true,
392
- agent: {
393
- name: OPENCODE
483
+ ],
484
+ [
485
+ "CLOUDFLARE_WORKERS",
486
+ "WORKERS_CI",
487
+ {
488
+ ci: !0
394
489
  }
395
- };
396
- if (process.env.CLAUDECODE || process.env.CLAUDE_CODE) return {
397
- isAgent: true,
398
- agent: {
399
- name: CLAUDE
490
+ ],
491
+ [
492
+ "GOOGLE_CLOUDRUN",
493
+ "K_SERVICE"
494
+ ],
495
+ [
496
+ "GOOGLE_CLOUDRUN_JOB",
497
+ "CLOUD_RUN_JOB"
498
+ ],
499
+ [
500
+ "CODEBUILD",
501
+ "CODEBUILD_BUILD_ARN"
502
+ ],
503
+ [
504
+ "CODEFRESH",
505
+ "CF_BUILD_ID"
506
+ ],
507
+ [
508
+ "DRONE"
509
+ ],
510
+ [
511
+ "DRONE",
512
+ "DRONE_BUILD_EVENT"
513
+ ],
514
+ [
515
+ "DSARI"
516
+ ],
517
+ [
518
+ "GITHUB_ACTIONS"
519
+ ],
520
+ [
521
+ "GITLAB",
522
+ "GITLAB_CI"
523
+ ],
524
+ [
525
+ "GITLAB",
526
+ "CI_MERGE_REQUEST_ID"
527
+ ],
528
+ [
529
+ "GOCD",
530
+ "GO_PIPELINE_LABEL"
531
+ ],
532
+ [
533
+ "LAYERCI"
534
+ ],
535
+ [
536
+ "JENKINS",
537
+ "JENKINS_URL"
538
+ ],
539
+ [
540
+ "HUDSON",
541
+ "HUDSON_URL"
542
+ ],
543
+ [
544
+ "MAGNUM"
545
+ ],
546
+ [
547
+ "NETLIFY"
548
+ ],
549
+ [
550
+ "NETLIFY",
551
+ "NETLIFY_LOCAL",
552
+ {
553
+ ci: !1
554
+ }
555
+ ],
556
+ [
557
+ "NEVERCODE"
558
+ ],
559
+ [
560
+ "RENDER"
561
+ ],
562
+ [
563
+ "SAIL",
564
+ "SAILCI"
565
+ ],
566
+ [
567
+ "SEMAPHORE"
568
+ ],
569
+ [
570
+ "SCREWDRIVER"
571
+ ],
572
+ [
573
+ "SHIPPABLE"
574
+ ],
575
+ [
576
+ "SOLANO",
577
+ "TDDIUM"
578
+ ],
579
+ [
580
+ "STRIDER"
581
+ ],
582
+ [
583
+ "TEAMCITY",
584
+ "TEAMCITY_VERSION"
585
+ ],
586
+ [
587
+ "TRAVIS"
588
+ ],
589
+ [
590
+ "VERCEL",
591
+ "NOW_BUILDER"
592
+ ],
593
+ [
594
+ "VERCEL",
595
+ "VERCEL",
596
+ {
597
+ ci: !1
598
+ }
599
+ ],
600
+ [
601
+ "VERCEL",
602
+ "VERCEL_ENV",
603
+ {
604
+ ci: !1
605
+ }
606
+ ],
607
+ [
608
+ "APPCENTER",
609
+ "APPCENTER_BUILD_ID"
610
+ ],
611
+ [
612
+ "CODESANDBOX",
613
+ "CODESANDBOX_SSE",
614
+ {
615
+ ci: !1
616
+ }
617
+ ],
618
+ [
619
+ "CODESANDBOX",
620
+ "CODESANDBOX_HOST",
621
+ {
622
+ ci: !1
400
623
  }
624
+ ],
625
+ [
626
+ "STACKBLITZ"
627
+ ],
628
+ [
629
+ "STORMKIT"
630
+ ],
631
+ [
632
+ "CLEAVR"
633
+ ],
634
+ [
635
+ "ZEABUR"
636
+ ],
637
+ [
638
+ "CODESPHERE",
639
+ "CODESPHERE_APP_ID",
640
+ {
641
+ ci: !0
642
+ }
643
+ ],
644
+ [
645
+ "RAILWAY",
646
+ "RAILWAY_PROJECT_ID"
647
+ ],
648
+ [
649
+ "RAILWAY",
650
+ "RAILWAY_SERVICE_ID"
651
+ ],
652
+ [
653
+ "DENO-DEPLOY",
654
+ "DENO_DEPLOY"
655
+ ],
656
+ [
657
+ "DENO-DEPLOY",
658
+ "DENO_DEPLOYMENT_ID"
659
+ ],
660
+ [
661
+ "FIREBASE_APP_HOSTING",
662
+ "FIREBASE_APP_HOSTING",
663
+ {
664
+ ci: !0
665
+ }
666
+ ]
667
+ ]);
668
+ function dist_u() {
669
+ for (let t of dist_l)if (dist_e[t[1] || t[0]]) return {
670
+ name: t[0].toLowerCase(),
671
+ ...t[2]
672
+ };
673
+ return "/bin/jsh" === dist_e.SHELL && dist_t.versions?.webcontainer ? {
674
+ name: "stackblitz",
675
+ ci: !1
676
+ } : {
677
+ name: "",
678
+ ci: !1
679
+ };
680
+ }
681
+ const dist_d = dist_u(), dist_p = (dist_d.name, dist_t.platform || ""), dist_m = !!dist_e.CI || !1 !== dist_d.ci, dist_h = !!dist_t.stdout?.isTTY, dist_S = (dist_e.DEBUG, "test" === dist_n || dist_e.TEST, "production" === dist_n || dist_e.MODE, "dev" === dist_n || "development" === dist_n || dist_e.MODE, dist_e.MINIMAL, /^win/i.test(dist_p)), dist_E = (/^linux/i.test(dist_p), /^darwin/i.test(dist_p), !dist_e.NO_COLOR && (!!dist_e.FORCE_COLOR || (dist_h || dist_S) && dist_e.TERM), (dist_t.versions?.node || "").replace(/^v/, "") || null), dist_O = (Number(dist_E?.split(".")[0]), !!dist_t?.versions?.node), dist_k = "Bun" in globalThis, dist_A = "Deno" in globalThis, dist_j = "fastly" in globalThis, dist_M = "Netlify" in globalThis, dist_N = "EdgeRuntime" in globalThis, dist_P = globalThis.navigator?.userAgent === "Cloudflare-Workers", dist_F = [
682
+ [
683
+ dist_M,
684
+ "netlify"
685
+ ],
686
+ [
687
+ dist_N,
688
+ "edge-light"
689
+ ],
690
+ [
691
+ dist_P,
692
+ "workerd"
693
+ ],
694
+ [
695
+ dist_j,
696
+ "fastly"
697
+ ],
698
+ [
699
+ dist_A,
700
+ "deno"
701
+ ],
702
+ [
703
+ dist_k,
704
+ "bun"
705
+ ],
706
+ [
707
+ dist_O,
708
+ "node"
709
+ ]
710
+ ];
711
+ function dist_I() {
712
+ let e = dist_F.find((e)=>e[0]);
713
+ if (e) return {
714
+ name: e[1]
715
+ };
716
+ }
717
+ const dist_L = dist_I();
718
+ dist_L?.name;
719
+ function determineAgent() {
720
+ if ('1' === process.env.RSTEST_NO_AGENT) return {
721
+ isAgent: false,
722
+ agent: void 0
401
723
  };
402
- if (process.env.REPL_ID) return {
724
+ const agent = dist_a();
725
+ if (agent.name) return {
403
726
  isAgent: true,
404
727
  agent: {
405
- name: REPLIT
728
+ name: agent.name
406
729
  }
407
730
  };
408
731
  return {
@@ -944,8 +1267,8 @@ const bgColor = (background, str)=>{
944
1267
  if ([
945
1268
  'bgRed',
946
1269
  'bgBlack'
947
- ].includes(background)) return color[background](color.white(color.bold(str)));
948
- return color[background](color.blackBright(color.bold(str)));
1270
+ ].includes(background)) return logger_color[background](logger_color.white(logger_color.bold(str)));
1271
+ return logger_color[background](logger_color.blackBright(logger_color.bold(str)));
949
1272
  };
950
1273
  const isTTY = (type = 'stdout')=>('stdin' === type ? process.stdin.isTTY : process.stdout.isTTY) && !process.env.CI;
951
1274
  const isDeno = "u" > typeof process && process.versions?.deno !== void 0;
@@ -968,7 +1291,7 @@ const getForceColorEnv = ()=>{
968
1291
  };
969
1292
  return {};
970
1293
  };
971
- const color = (0, picocolors.createColors)();
1294
+ const logger_color = (0, picocolors.createColors)();
972
1295
  if (isDebug()) src_logger.level = 'verbose';
973
1296
  function getTime() {
974
1297
  const now = new Date();
@@ -980,8 +1303,8 @@ function getTime() {
980
1303
  src_logger.override({
981
1304
  debug: (message, ...args)=>{
982
1305
  if ('verbose' !== src_logger.level) return;
983
- const time = color.gray(getTime());
984
- console.log(` ${color.magenta('rstest')} ${time} ${message}`, ...args);
1306
+ const time = logger_color.gray(getTime());
1307
+ console.log(` ${logger_color.magenta('rstest')} ${time} ${message}`, ...args);
985
1308
  }
986
1309
  });
987
1310
  const clearScreen = (force = false)=>{
@@ -994,4 +1317,4 @@ const logger_logger = {
994
1317
  console.error(message, ...args);
995
1318
  }
996
1319
  };
997
- export { ADDITIONAL_NODE_BUILTINS, _path, basename, bgColor, castArray, clearScreen, color, determineAgent, dirname, formatError, formatRootStr, getAbsolutePath, getForceColorEnv, getTaskNameWithPrefix, isAbsolute, isDebug, isDeno, isObject, isTTY, join, logger_logger as logger, needFlagExperimentalDetectModule, node_process, normalize, parsePosix, prettyTime, relative, resolve, serializableConfig, stdin, stdout };
1320
+ export { ADDITIONAL_NODE_BUILTINS, _path, basename, bgColor, castArray, clearScreen, determineAgent, dirname, dist_m, formatError, formatRootStr, getAbsolutePath, getForceColorEnv, getTaskNameWithPrefix, isAbsolute, isDebug, isDeno, isObject, isTTY, join, logger_color as color, logger_logger as logger, needFlagExperimentalDetectModule, normalize, parsePosix, prettyTime, relative, resolve, serializableConfig };
package/dist/7011.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "node:module";
2
- import { _path } from "./3160.js";
2
+ import { _path } from "./6830.js";
3
3
  const delimiter = /* @__PURE__ */ (()=>globalThis.process?.platform === "win32" ? ";" : ":")();
4
4
  const _platforms = {
5
5
  posix: void 0,