@hasna/testers 0.0.60 → 0.0.61
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/dist/cli/index.js +17 -1
- package/dist/index.js +16 -0
- package/dist/mcp/index.js +17 -1
- package/dist/server/index.js +17 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -27425,6 +27425,13 @@ function buildSandboxCommand(input) {
|
|
|
27425
27425
|
"--no-auto-generate",
|
|
27426
27426
|
"--json"
|
|
27427
27427
|
];
|
|
27428
|
+
const installBrowserArgs = [
|
|
27429
|
+
"bunx",
|
|
27430
|
+
input.packageSpec,
|
|
27431
|
+
"install-browser",
|
|
27432
|
+
"--engine",
|
|
27433
|
+
"playwright"
|
|
27434
|
+
];
|
|
27428
27435
|
return [
|
|
27429
27436
|
"set -euo pipefail",
|
|
27430
27437
|
buildBunBootstrapCommand(),
|
|
@@ -27434,6 +27441,7 @@ function buildSandboxCommand(input) {
|
|
|
27434
27441
|
`cd ${shellQuote(input.appRemoteDir ?? input.remoteDir)}`,
|
|
27435
27442
|
input.setupCommand,
|
|
27436
27443
|
buildAppStartCommand(input),
|
|
27444
|
+
buildSandboxBrowserInstallCommand(installBrowserArgs),
|
|
27437
27445
|
`HASNA_TESTERS_DB_PATH=${shellQuote(input.dbPath)} ${args.map(shellQuote).join(" ")}`
|
|
27438
27446
|
].filter(Boolean).join(`
|
|
27439
27447
|
`);
|
|
@@ -27449,6 +27457,14 @@ function buildBunBootstrapCommand() {
|
|
|
27449
27457
|
].join(`
|
|
27450
27458
|
`);
|
|
27451
27459
|
}
|
|
27460
|
+
function buildSandboxBrowserInstallCommand(args) {
|
|
27461
|
+
return [
|
|
27462
|
+
'if [ "${TESTERS_SANDBOX_SKIP_BROWSER_INSTALL:-}" != "1" ]; then',
|
|
27463
|
+
` ${args.map(shellQuote).join(" ")}`,
|
|
27464
|
+
"fi"
|
|
27465
|
+
].join(`
|
|
27466
|
+
`);
|
|
27467
|
+
}
|
|
27452
27468
|
function buildAppStartCommand(input) {
|
|
27453
27469
|
if (!input.appStartCommand)
|
|
27454
27470
|
return;
|
|
@@ -95735,7 +95751,7 @@ import chalk6 from "chalk";
|
|
|
95735
95751
|
// package.json
|
|
95736
95752
|
var package_default = {
|
|
95737
95753
|
name: "@hasna/testers",
|
|
95738
|
-
version: "0.0.
|
|
95754
|
+
version: "0.0.61",
|
|
95739
95755
|
description: "AI-powered QA testing CLI \u2014 spawns cheap AI agents to test web apps with headless browsers",
|
|
95740
95756
|
type: "module",
|
|
95741
95757
|
main: "dist/index.js",
|
package/dist/index.js
CHANGED
|
@@ -17541,6 +17541,13 @@ function buildSandboxCommand(input) {
|
|
|
17541
17541
|
"--no-auto-generate",
|
|
17542
17542
|
"--json"
|
|
17543
17543
|
];
|
|
17544
|
+
const installBrowserArgs = [
|
|
17545
|
+
"bunx",
|
|
17546
|
+
input.packageSpec,
|
|
17547
|
+
"install-browser",
|
|
17548
|
+
"--engine",
|
|
17549
|
+
"playwright"
|
|
17550
|
+
];
|
|
17544
17551
|
return [
|
|
17545
17552
|
"set -euo pipefail",
|
|
17546
17553
|
buildBunBootstrapCommand(),
|
|
@@ -17550,6 +17557,7 @@ function buildSandboxCommand(input) {
|
|
|
17550
17557
|
`cd ${shellQuote(input.appRemoteDir ?? input.remoteDir)}`,
|
|
17551
17558
|
input.setupCommand,
|
|
17552
17559
|
buildAppStartCommand(input),
|
|
17560
|
+
buildSandboxBrowserInstallCommand(installBrowserArgs),
|
|
17553
17561
|
`HASNA_TESTERS_DB_PATH=${shellQuote(input.dbPath)} ${args.map(shellQuote).join(" ")}`
|
|
17554
17562
|
].filter(Boolean).join(`
|
|
17555
17563
|
`);
|
|
@@ -17565,6 +17573,14 @@ function buildBunBootstrapCommand() {
|
|
|
17565
17573
|
].join(`
|
|
17566
17574
|
`);
|
|
17567
17575
|
}
|
|
17576
|
+
function buildSandboxBrowserInstallCommand(args) {
|
|
17577
|
+
return [
|
|
17578
|
+
'if [ "${TESTERS_SANDBOX_SKIP_BROWSER_INSTALL:-}" != "1" ]; then',
|
|
17579
|
+
` ${args.map(shellQuote).join(" ")}`,
|
|
17580
|
+
"fi"
|
|
17581
|
+
].join(`
|
|
17582
|
+
`);
|
|
17583
|
+
}
|
|
17568
17584
|
function buildAppStartCommand(input) {
|
|
17569
17585
|
if (!input.appStartCommand)
|
|
17570
17586
|
return;
|
package/dist/mcp/index.js
CHANGED
|
@@ -52,7 +52,7 @@ var package_default;
|
|
|
52
52
|
var init_package = __esm(() => {
|
|
53
53
|
package_default = {
|
|
54
54
|
name: "@hasna/testers",
|
|
55
|
-
version: "0.0.
|
|
55
|
+
version: "0.0.61",
|
|
56
56
|
description: "AI-powered QA testing CLI \u2014 spawns cheap AI agents to test web apps with headless browsers",
|
|
57
57
|
type: "module",
|
|
58
58
|
main: "dist/index.js",
|
|
@@ -23816,6 +23816,13 @@ function buildSandboxCommand(input) {
|
|
|
23816
23816
|
"--no-auto-generate",
|
|
23817
23817
|
"--json"
|
|
23818
23818
|
];
|
|
23819
|
+
const installBrowserArgs = [
|
|
23820
|
+
"bunx",
|
|
23821
|
+
input.packageSpec,
|
|
23822
|
+
"install-browser",
|
|
23823
|
+
"--engine",
|
|
23824
|
+
"playwright"
|
|
23825
|
+
];
|
|
23819
23826
|
return [
|
|
23820
23827
|
"set -euo pipefail",
|
|
23821
23828
|
buildBunBootstrapCommand(),
|
|
@@ -23825,6 +23832,7 @@ function buildSandboxCommand(input) {
|
|
|
23825
23832
|
`cd ${shellQuote(input.appRemoteDir ?? input.remoteDir)}`,
|
|
23826
23833
|
input.setupCommand,
|
|
23827
23834
|
buildAppStartCommand(input),
|
|
23835
|
+
buildSandboxBrowserInstallCommand(installBrowserArgs),
|
|
23828
23836
|
`HASNA_TESTERS_DB_PATH=${shellQuote(input.dbPath)} ${args.map(shellQuote).join(" ")}`
|
|
23829
23837
|
].filter(Boolean).join(`
|
|
23830
23838
|
`);
|
|
@@ -23840,6 +23848,14 @@ function buildBunBootstrapCommand() {
|
|
|
23840
23848
|
].join(`
|
|
23841
23849
|
`);
|
|
23842
23850
|
}
|
|
23851
|
+
function buildSandboxBrowserInstallCommand(args) {
|
|
23852
|
+
return [
|
|
23853
|
+
'if [ "${TESTERS_SANDBOX_SKIP_BROWSER_INSTALL:-}" != "1" ]; then',
|
|
23854
|
+
` ${args.map(shellQuote).join(" ")}`,
|
|
23855
|
+
"fi"
|
|
23856
|
+
].join(`
|
|
23857
|
+
`);
|
|
23858
|
+
}
|
|
23843
23859
|
function buildAppStartCommand(input) {
|
|
23844
23860
|
if (!input.appStartCommand)
|
|
23845
23861
|
return;
|
package/dist/server/index.js
CHANGED
|
@@ -47090,7 +47090,7 @@ import { join as join14 } from "path";
|
|
|
47090
47090
|
// package.json
|
|
47091
47091
|
var package_default = {
|
|
47092
47092
|
name: "@hasna/testers",
|
|
47093
|
-
version: "0.0.
|
|
47093
|
+
version: "0.0.61",
|
|
47094
47094
|
description: "AI-powered QA testing CLI \u2014 spawns cheap AI agents to test web apps with headless browsers",
|
|
47095
47095
|
type: "module",
|
|
47096
47096
|
main: "dist/index.js",
|
|
@@ -51657,6 +51657,13 @@ function buildSandboxCommand(input) {
|
|
|
51657
51657
|
"--no-auto-generate",
|
|
51658
51658
|
"--json"
|
|
51659
51659
|
];
|
|
51660
|
+
const installBrowserArgs = [
|
|
51661
|
+
"bunx",
|
|
51662
|
+
input.packageSpec,
|
|
51663
|
+
"install-browser",
|
|
51664
|
+
"--engine",
|
|
51665
|
+
"playwright"
|
|
51666
|
+
];
|
|
51660
51667
|
return [
|
|
51661
51668
|
"set -euo pipefail",
|
|
51662
51669
|
buildBunBootstrapCommand(),
|
|
@@ -51666,6 +51673,7 @@ function buildSandboxCommand(input) {
|
|
|
51666
51673
|
`cd ${shellQuote(input.appRemoteDir ?? input.remoteDir)}`,
|
|
51667
51674
|
input.setupCommand,
|
|
51668
51675
|
buildAppStartCommand(input),
|
|
51676
|
+
buildSandboxBrowserInstallCommand(installBrowserArgs),
|
|
51669
51677
|
`HASNA_TESTERS_DB_PATH=${shellQuote(input.dbPath)} ${args.map(shellQuote).join(" ")}`
|
|
51670
51678
|
].filter(Boolean).join(`
|
|
51671
51679
|
`);
|
|
@@ -51681,6 +51689,14 @@ function buildBunBootstrapCommand() {
|
|
|
51681
51689
|
].join(`
|
|
51682
51690
|
`);
|
|
51683
51691
|
}
|
|
51692
|
+
function buildSandboxBrowserInstallCommand(args) {
|
|
51693
|
+
return [
|
|
51694
|
+
'if [ "${TESTERS_SANDBOX_SKIP_BROWSER_INSTALL:-}" != "1" ]; then',
|
|
51695
|
+
` ${args.map(shellQuote).join(" ")}`,
|
|
51696
|
+
"fi"
|
|
51697
|
+
].join(`
|
|
51698
|
+
`);
|
|
51699
|
+
}
|
|
51684
51700
|
function buildAppStartCommand(input) {
|
|
51685
51701
|
if (!input.appStartCommand)
|
|
51686
51702
|
return;
|