Skip to content

Doubao-powered voice input for Linux, Wayland and Omarchy

test(midscene): migrate desktop flows to Midscene Test (#20)

Leyangd36da005ff98
diff --git a/.github/workflows/deploy-midscene-report.yml b/.github/workflows/deploy-midscene-report.yml
index 259eaa5..2ff4433 100644
--- a/.github/workflows/deploy-midscene-report.yml
+++ b/.github/workflows/deploy-midscene-report.yml
@@ -99,17 +99,18 @@ jobs:
env:
HISTORY_URL: ${{ steps.pages.outputs.base_url }}/
REPORT_URL: ${{ steps.pages.outputs.base_url }}/reports/${{ github.run_id }}/index.html
+ ONBOARDING_URL: ${{ steps.pages.outputs.base_url }}/reports/${{ github.run_id }}/onboarding-report.html
MENU_IMAGE_URL: ${{ steps.pages.outputs.base_url }}/reports/${{ github.run_id }}/menu.jpg
run: |
if [[ "${{ inputs.report-label }}" == Omarchy* ]]; then
cat >> "$GITHUB_STEP_SUMMARY" <<EOF
## Omarchy × Midscene · visual report
- [**Open the interactive HTML showcase →**]($REPORT_URL) · [Report history]($HISTORY_URL)
+ [**Open the Midscene Test HTML report →**]($REPORT_URL) · [Onboarding report]($ONBOARDING_URL) · [Report history]($HISTORY_URL)
[![Real Omarchy system menu tested by Midscene]($MENU_IMAGE_URL)]($REPORT_URL)
- The showcase embeds the complete Midscene replay and includes the menu and vertical bar screenshots.
+ Click the real Omarchy desktop image to inspect the complete test run, AI assertions, screenshots, and Agent replay.
EOF
else
echo "- [Open this run's report]($REPORT_URL)" >> "$GITHUB_STEP_SUMMARY"
diff --git a/.github/workflows/midscene-omarchy-4.0.3.yml b/.github/workflows/midscene-omarchy-4.0.3.yml
index 7ae6818..9f37ed3 100644
--- a/.github/workflows/midscene-omarchy-4.0.3.yml
+++ b/.github/workflows/midscene-omarchy-4.0.3.yml
@@ -14,7 +14,8 @@ on:
- "tests/midscene/package.json"
- "tests/midscene/package-lock.json"
- "tests/midscene/gtk_fixture.py"
- - "tests/midscene/e2e/**"
+ - "tests/midscene/cases/**"
+ - "tests/midscene/midscene.config.ts"
- "tests/midscene/run-omarchy-midscene.sh"
- "tests/midscene/restore-omarchy-vm.sh"
- "tests/midscene/omarchy-vm.env"
@@ -36,7 +37,8 @@ on:
- "tests/midscene/package.json"
- "tests/midscene/package-lock.json"
- "tests/midscene/gtk_fixture.py"
- - "tests/midscene/e2e/**"
+ - "tests/midscene/cases/**"
+ - "tests/midscene/midscene.config.ts"
- "tests/midscene/run-omarchy-midscene.sh"
- "tests/midscene/restore-omarchy-vm.sh"
- "tests/midscene/omarchy-vm.env"
@@ -119,7 +121,14 @@ jobs:
run: |
sudo apt-get install -y --no-install-recommends \
fluxbox tigervnc-viewer x11-xserver-utils xvfb
- npm --prefix tests/midscene ci --include=optional --ignore-scripts
+ for attempt in 1 2 3; do
+ if npm --prefix tests/midscene ci --include=optional --ignore-scripts; then
+ exit 0
+ fi
+ echo "npm install attempt $attempt failed; retrying." >&2
+ sleep 10
+ done
+ exit 1
- name: Run real Omarchy Midscene E2E
run: tests/midscene/run-omarchy-midscene.sh
diff --git a/.github/workflows/midscene-ubuntu-22.04.yml b/.github/workflows/midscene-ubuntu-22.04.yml
index b0cd019..38f20c8 100644
--- a/.github/workflows/midscene-ubuntu-22.04.yml
+++ b/.github/workflows/midscene-ubuntu-22.04.yml
@@ -12,7 +12,8 @@ on:
- "tests/midscene/package.json"
- "tests/midscene/package-lock.json"
- "tests/midscene/gtk_fixture.py"
- - "tests/midscene/e2e/**"
+ - "tests/midscene/cases/**"
+ - "tests/midscene/midscene.config.ts"
- "src/**"
pull_request:
branches: [main]
@@ -24,7 +25,8 @@ on:
- "tests/midscene/package.json"
- "tests/midscene/package-lock.json"
- "tests/midscene/gtk_fixture.py"
- - "tests/midscene/e2e/**"
+ - "tests/midscene/cases/**"
+ - "tests/midscene/midscene.config.ts"
- "src/**"
workflow_dispatch:
@@ -109,16 +111,26 @@ jobs:
# sharp's platform packages are pinned explicitly. Skipping lifecycle
# scripts avoids an npm ordering bug that tries to build sharp before
# those prebuilt packages are linked.
- run: npm ci --include=optional --ignore-scripts
+ run: |
+ for attempt in 1 2 3; do
+ if npm ci --include=optional --ignore-scripts; then
+ exit 0
+ fi
+ echo "npm install attempt $attempt failed; retrying." >&2
+ sleep 10
+ done
+ exit 1
- name: Run Ubuntu 22.04 Midscene E2E
working-directory: tests/midscene
+ env:
+ NODE_OPTIONS: --dns-result-order=ipv4first --no-network-family-autoselection --require=./node_modules/@computer-use/libnut/dist/import_libnut.js
run: |
set -o pipefail
midscene_passed=false
for test_attempt in 1 2 3; do
attempt_log="/tmp/ubuntu-midscene-attempt-${test_attempt}.log"
- if npm test 2>&1 | tee "$attempt_log"; then
+ if npm test -- --project ubuntu 2>&1 | tee "$attempt_log"; then
midscene_passed=true
break
fi
diff --git a/scripts/build-pages-report.mjs b/scripts/build-pages-report.mjs
index 25df2ee..b7556a8 100644
--- a/scripts/build-pages-report.mjs
+++ b/scripts/build-pages-report.mjs
@@ -202,64 +202,6 @@ function formatDuration(durationMs) {
return `${(durationMs / 1000).toFixed(2)} s`;
}
-function buildOmarchyShowcase(checks, workflowUrl) {
- const rows = checks
- .map(
- (check) => `
- <div class="check"><span class="check-mark">✓</span><span>${escapeHtml(check.label)}</span><strong>PASS</strong></div>`,
- )
- .join('');
- return `<!doctype html>
-<html lang="en">
-<head>
- <meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
- <title>Omarchy × Midscene — Visual acceptance</title>
- <style>
- :root { font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #eef2ff; background: #080b16; }
- * { box-sizing: border-box; } body { margin: 0; } a { color: inherit; }
- main { max-width: 1360px; padding: 44px 28px 100px; margin: auto; }
- .eyebrow { color: #a6a9ff; letter-spacing: .18em; font-size: 12px; font-weight: 800; text-transform: uppercase; }
- h1 { font-size: clamp(42px, 6vw, 84px); letter-spacing: -.065em; line-height: 1.02; margin: 18px 0; }
- h1 em { color: #a7f3d0; font-style: normal; } .lead { color: #a9b3c9; font-size: 20px; max-width: 760px; line-height: 1.6; }
- .hero { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; margin-bottom: 34px; }
- .score { padding: 24px 32px; background: #152b29; border: 1px solid #3b8a72; border-radius: 20px; min-width: 210px; }
- .score b { display: block; font-size: 58px; letter-spacing: -.06em; color: #a7f3d0; line-height: 1; }
- .score span { color: #c5ded3; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
- .pipeline { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0; }
- .pipeline span { padding: 10px 14px; border-radius: 999px; background: #151b2c; border: 1px solid #343c54; color: #c8d0e2; font-size: 13px; }
- .grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr); gap: 18px; }
- .panel { overflow: hidden; border: 1px solid #303953; background: #111727; border-radius: 20px; }
- .panel img { width: 100%; display: block; object-fit: contain; background: #080b16; }
- .panel .caption { padding: 18px 20px; color: #b8c4d9; } .caption b { color: white; display: block; margin-bottom: 4px; }
- .checks { margin-top: 18px; padding: 20px 24px; } .check { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid #293248; }
- .check:last-child { border: 0; }.check-mark { color: #a7f3d0; font-size: 22px; }.check strong { margin-left: auto; color: #a7f3d0; font-size: 12px; letter-spacing: .12em; }
- h2 { margin: 70px 0 16px; font-size: 30px; letter-spacing: -.035em; } .muted { color: #a9b3c9; line-height: 1.6; }
- .button { display: inline-block; text-decoration: none; background: #b4a7ff; color: #0b0c18; border-radius: 10px; padding: 12px 18px; font-weight: 800; margin: 12px 12px 16px 0; }
- .button.secondary { background: #25304a; color: #e5e9ff; }
- iframe { width: 100%; height: 820px; border: 1px solid #3f4960; border-radius: 16px; background: white; }
- @media (max-width: 800px) { .hero, .grid { grid-template-columns: 1fr; } main { padding: 26px 16px 70px; } }
- </style>
-</head>
-<body><main>
- <div class="eyebrow">Real desktop · Visual acceptance · Omarchy 4.0.3</div>
- <div class="hero"><div><h1>Omarchy <em>×</em> Midscene</h1>
- <p class="lead">Midscene judged the pixels of a real Hyprland desktop: readable menu text, clean focus styling, and a correctly placed vertical bar.</p></div>
- <div class="score"><b>3 / 3</b><span>visual assertions passed</span></div></div>
- <div class="pipeline"><span>Official Omarchy ISO</span><span>→ KVM guest</span><span>→ Hyprland / Wayland</span><span>→ VNC bridge</span><span>→ Midscene VLM</span><span>→ HTML replay</span></div>
- <div class="grid">
- <div class="panel"><img src="menu.jpg" alt="Real Omarchy system menu with Shutdown visible and one focused row"><div class="caption"><b>System menu · real VM screenshot</b>Shutdown is legible; one menu row has a visible focus highlight.</div></div>
- <div><div class="panel"><img src="bar.jpg" alt="Omarchy bar docked vertically on the left edge"><div class="caption"><b>Bar position · real VM screenshot</b>The bar is vertical and docked to the left edge.</div></div>
- <div class="panel checks">${rows}</div></div>
- </div>
- <h2>Watch the actual Midscene replay</h2>
- <p class="muted">The embedded report below includes each screenshot, the assertion prompt, the model result, and the execution timeline. The onboarding run is available separately.</p>
- <a class="button" href="shell-report.html" target="_blank" rel="noopener">Open full shell report ↗</a>
- <a class="button secondary" href="onboarding-report.html" target="_blank" rel="noopener">Open onboarding report ↗</a>
- <a class="button secondary" href="${escapeHtml(workflowUrl)}">View CI run ↗</a>
- <iframe src="shell-report.html" title="Interactive Midscene shell report" loading="lazy"></iframe>
-</main></body></html>`;
-}
-
function buildIndex(reports) {
const rows = reports
.map(
@@ -351,34 +293,23 @@ export async function buildPagesReport(options) {
'Two reports were found but the Omarchy shell report is missing',
);
}
- const checks =
- shellReport && htmlFiles.length === 2
- ? extractShellEvidence(shellReport.html)
- : null;
+ const checks = shellReport ? extractShellEvidence(shellReport.html) : null;
if (checks?.some((check) => !check.passed)) {
- throw new Error(
- 'Cannot publish a passing showcase with failed visual assertions',
- );
+ throw new Error('Cannot publish failed Omarchy visual assertions');
}
const usage = collectModelUsage(
htmlReports.map((report) => report.html).join('\n'),
);
const reportPrefix = `reports/${runId}`;
- const files = checks
- ? [
- 'index.html',
- 'shell-report.html',
- 'onboarding-report.html',
- 'menu.jpg',
- 'bar.jpg',
- ].map((name) => `${reportPrefix}/${name}`)
+ const files = htmlFiles.length === 2
+ ? ['index.html', 'onboarding-report.html', 'menu.jpg', 'bar.jpg'].map((name) => `${reportPrefix}/${name}`)
: [`${reportPrefix}/index.html`];
const current = {
runId,
generatedAt,
label,
successRate: 100,
- testCount: checks ? 3 : 1,
+ testCount: htmlFiles.length === 2 ? 2 : 1,
...usage,
workflowUrl,
reportPath: `reports/${runId}/index.html`,
@@ -396,30 +327,12 @@ export async function buildPagesReport(options) {
const currentDirectory = path.join(siteDirectory, reportPrefix);
await mkdir(currentDirectory, { recursive: true });
- if (checks) {
- const onboardingReport = htmlReports.find(
- (report) => report !== shellReport,
- );
- await copyFile(
- shellReport.file,
- path.join(currentDirectory, 'shell-report.html'),
- );
- await copyFile(
- onboardingReport.file,
- path.join(currentDirectory, 'onboarding-report.html'),
- );
- await writeFile(
- path.join(currentDirectory, 'menu.jpg'),
- checks[1].screenshot.bytes,
- );
- await writeFile(
- path.join(currentDirectory, 'bar.jpg'),
- checks[2].screenshot.bytes,
- );
- await writeFile(
- path.join(currentDirectory, 'index.html'),
- buildOmarchyShowcase(checks, workflowUrl),
- );
+ if (shellReport) {
+ const onboardingReport = htmlReports.find((report) => report !== shellReport);
+ await copyFile(shellReport.file, path.join(currentDirectory, 'index.html'));
+ await copyFile(onboardingReport.file, path.join(currentDirectory, 'onboarding-report.html'));
+ await writeFile(path.join(currentDirectory, 'menu.jpg'), checks[1].screenshot.bytes);
+ await writeFile(path.join(currentDirectory, 'bar.jpg'), checks[2].screenshot.bytes);
} else {
await copyFile(htmlFiles[0], path.join(currentDirectory, 'index.html'));
}
diff --git a/scripts/omarchy-shell-evidence.mjs b/scripts/omarchy-shell-evidence.mjs
index 50dddb1..f35c947 100644
--- a/scripts/omarchy-shell-evidence.mjs
+++ b/scripts/omarchy-shell-evidence.mjs
@@ -30,7 +30,11 @@ export async function findHtmlFiles(directory) {
}
}
await visit(directory);
- return results.sort();
+ const testRunReports = results.filter((file) =>
+ path.basename(file).startsWith('test-run-') ||
+ path.basename(path.dirname(file)).startsWith('test-run-'),
+ );
+ return (testRunReports.length ? testRunReports : results).sort();
}
// Some report versions put raw control characters inside JSON strings.
diff --git a/tests/midscene/.npmrc b/tests/midscene/.npmrc
new file mode 100644
index 0000000..214c29d
--- /dev/null
+++ b/tests/midscene/.npmrc
@@ -0,0 +1 @@
+registry=https://registry.npmjs.org/
diff --git a/tests/midscene/README.md b/tests/midscene/README.md
index ae6ed17..9a19b4b 100644
--- a/tests/midscene/README.md
+++ b/tests/midscene/README.md
@@ -43,12 +43,22 @@ The Omarchy workflow continues from that installed base image:
3. Run the focused Midscene onboarding suite through VNC in the real
Omarchy/Hyprland guest session.
-The Ubuntu workflow runs the deterministic GTK fixture directly with Rstest
+The Ubuntu workflow runs the deterministic GTK fixture through
+[`@midscene/test`](https://midscenejs.com/zh/midscene-test/overview.html)
and `@midscene/computer`. Pull requests from forks are skipped because GitHub
does not expose the required model secret to untrusted workflow code.
-Both distributions execute the same shared Midscene onboarding scenario. The
-Ubuntu stage maps the real GTK onboarding window inside the
+Both distributions execute the same declarative onboarding scenario in
+`cases/onboarding.yaml`. `midscene.config.ts` prepares the local Xvfb desktop,
+GTK fixture or Omarchy VNC viewer. Custom `shell.*` Nodes prepare the real
+Omarchy menu and bar; `cases/omarchy-shell.yaml` keeps the three pixel-level
+assertions explicit. Run `npm run nodes` in this directory to regenerate the
+Node reference, or `npm test -- --project ubuntu` on a prepared Linux desktop.
+Each invocation writes a unified Midscene Test HTML report under
+`midscene_run/report/`; CI publishes those reports and the Omarchy screenshot
+report, with its real desktop screenshot as the CI entrance image.
+
+The Ubuntu stage maps the real GTK onboarding window inside the
headless Midscene desktop. Its synthetic fixture starts signed out, opens an
explicitly labelled CI-only sign-in window, and simulates a successful return
without a network request or real credentials. It also performs no recording,
@@ -71,13 +81,13 @@ asserts that the rendered bar is vertical and docked to the left edge, and
restores the original bar configuration. The HTML replay is included in the
`omarchy-midscene-e2e-report` artifact. The Actions run summary shows the
three visual verdicts directly. Successful runs on `main` publish a Pages
-showcase with the actual screenshots and an embedded interactive shell replay;
-the full onboarding replay remains available from the same page.
+entrance image that links directly to the Midscene Test shell report;
+the onboarding report is published alongside it.
| Omarchy acceptance test today | Midscene visual check |
| --- | --- |
-| `screen_contains "Shutdown"`: enlarge a `grim` image, run Tesseract, and grep for text | `agent.aiAssert` checks that Shutdown is legible in the rendered system menu |
-| `hyprctl -j layers` and `bar_is_vertical`: compare layer dimensions | `agent.aiAssert` checks the visible bar's shape and left-edge placement |
+| `screen_contains "Shutdown"`: enlarge a `grim` image, run Tesseract, and grep for text | YAML `aiAssert` checks that Shutdown is legible in the rendered system menu |
+| `hyprctl -j layers` and `bar_is_vertical`: compare layer dimensions | YAML `aiAssert` checks the visible bar's shape and left-edge placement |
| Standalone `grim` PNGs | Step-by-step HTML replay with assertions and screenshots |
The SSH and `hyprctl` calls in this PoC set up the scene and wait for the menu;
diff --git a/tests/midscene/cases/omarchy-shell.yaml b/tests/midscene/cases/omarchy-shell.yaml
new file mode 100644
index 0000000..fd8e312
--- /dev/null
+++ b/tests/midscene/cases/omarchy-shell.yaml
@@ -0,0 +1,9 @@
+cases:
+ - name: System menu text and focused row are visible
+ steps:
+ - shell.openSystemMenu: {}
+ - aiAssert: The Omarchy system menu is open, and its Shutdown item is clearly readable.
+ - aiAssert: Exactly one row in the open system menu has a visible focus highlight or accent, and the highlight is rendered cleanly.
+ - shell.closeSystemMenu: {}
+ - shell.moveBarLeft: {}
+ - aiAssert: The Omarchy bar is visible as a tall vertical bar docked to the left edge of the desktop, rather than a horizontal bar across the top or bottom.
diff --git a/tests/midscene/cases/onboarding.yaml b/tests/midscene/cases/onboarding.yaml
new file mode 100644
index 0000000..b038722
--- /dev/null
+++ b/tests/midscene/cases/onboarding.yaml
@@ -0,0 +1,20 @@
+cases:
+ - name: Complete Doubao Say onboarding on a real desktop
+ steps:
+ - aiAssert: The visible Doubao Say window is on Sign in, says the user is not signed in, and shows Open Doubao sign-in.
+ - aiAct: Click Open Doubao sign-in exactly once, then stop immediately.
+ - wait: { duration: 1500 }
+ - aiAssert: A Synthetic Doubao sign-in window is visible and explicitly says it is CI-only, makes no network request, and uses no real credentials.
+ - aiAct: In the Synthetic Doubao sign-in window, click Simulate successful sign-in exactly once, then stop immediately.
+ - aiAssert: The synthetic sign-in window closed and Doubao Say automatically advanced to the Microphone step with Next in the fixed top navigation.
+ - aiAct: Click Next in the Doubao Say fixed top navigation exactly once. Do not click Next a second time.
+ - aiAssert: The current Doubao Say step is Trigger key.
+ - aiAct: Stay on Trigger key. Scroll inside the light-gray central content panel until the Voice polishing heading and its controls are visible.
+ - aiAct: On Trigger key, click Test endpoint in the visible Voice polishing section and wait for the endpoint result.
+ - aiAct: If needed, scroll down slightly inside the central content panel until Synthetic endpoint response is visible below Endpoint works. Keep both results on screen.
+ - aiAssert: A visible message says the endpoint works and includes Synthetic endpoint response.
+ - aiAct: Click Next in the fixed top navigation exactly once. Do not click Next a second time.
+ - aiAssert: The current Doubao Say step is Voice test.
+ - aiAssert: The Voice test heading and introductory text are clearly visible near the top of the current content panel.
+ - aiAct: Scroll within Voice test content if needed and click Finish setup exactly once. Stop when the button changes to the disabled status Setup completed by the synthetic E2E fixture.
+ - aiAssert: The Finish setup button changed to a disabled visible status saying Setup completed by the synthetic E2E fixture.
diff --git a/tests/midscene/e2e/omarchy-onboarding.test.ts b/tests/midscene/e2e/omarchy-onboarding.test.ts
deleted file mode 100644
index 61710da..0000000
--- a/tests/midscene/e2e/omarchy-onboarding.test.ts
+++ /dev/null
@@ -1,69 +0,0 @@
-import { spawn, type ChildProcess } from 'node:child_process';
-import { afterAll, beforeAll, describe, it } from '@rstest/core';
-import {
- type ComputerAgent,
- agentFromComputer,
-} from '@midscene/computer';
-import { runOnboardingFlow } from './onboarding-flow';
-
-const sleep = (milliseconds: number) =>
- new Promise((resolvePromise) => setTimeout(resolvePromise, milliseconds));
-
-const stopProcessGroup = (child?: ChildProcess) => {
- if (!child?.pid) return;
- try {
- process.kill(-child.pid, 'SIGTERM');
- } catch {
- // The viewer may already have exited after a test failure.
- }
-};
-
-describe.skipIf(process.env.OMARCHY_E2E !== 'true')(
- 'Doubao Say onboarding on Omarchy',
- () => {
- let agent: ComputerAgent;
- let fluxbox: ChildProcess;
- let viewer: ChildProcess;
-
- beforeAll(async () => {
- agent = await agentFromComputer({
- aiContexts: {
- aiAct:
- 'You are testing the English Doubao Say GTK onboarding window ' +
- 'inside a real Omarchy Hyprland virtual machine shown through a VNC viewer. ' +
- 'Interact only with the Doubao Say window and use visible labels.',
- },
- // Match QEMU's 1280x800 guest framebuffer exactly. A taller Xvfb
- // makes TigerVNC letterbox the guest and offsets Midscene clicks.
- xvfbResolution: '1280x800x24',
- });
-
- fluxbox = spawn('fluxbox', [], {
- detached: true,
- stdio: 'ignore',
- env: process.env,
- });
- await sleep(1000);
-
- viewer = spawn(
- 'vncviewer',
- ['-FullScreen=1', '-RemoteResize=0', '-ViewOnly=0', '127.0.0.1:5905'],
- {
- detached: true,
- stdio: 'ignore',
- env: process.env,
- },
- );
- await sleep(4000);
- });
-
- afterAll(() => {
- stopProcessGroup(viewer);
- stopProcessGroup(fluxbox);
- });
-
- it('runs the onboarding flow in the real Omarchy desktop session', async () => {
- await runOnboardingFlow(agent);
- });
- },
-);
diff --git a/tests/midscene/e2e/omarchy-system-menu.test.ts b/tests/midscene/e2e/omarchy-system-menu.test.ts
deleted file mode 100644
index 1bce7f4..0000000
--- a/tests/midscene/e2e/omarchy-system-menu.test.ts
+++ /dev/null
@@ -1,156 +0,0 @@
-import { type ChildProcess, execFileSync, spawn } from 'node:child_process';
-import { type ComputerAgent, agentFromComputer } from '@midscene/computer';
-import { afterAll, beforeAll, describe, it } from '@rstest/core';
-
-const sleep = (milliseconds: number) =>
- new Promise((resolvePromise) => setTimeout(resolvePromise, milliseconds));
-
-const stopProcessGroup = (child?: ChildProcess) => {
- if (!child?.pid) return;
- try {
- process.kill(-child.pid, 'SIGTERM');
- } catch {
- // The process may already have exited after a test failure.
- }
-};
-
-const guest = (command: string) => {
- const key = process.env.OMARCHY_SSH_KEY;
- if (!key) throw new Error('OMARCHY_SSH_KEY is required for the Omarchy E2E');
- const sessionEnvironment = [
- 'export XDG_RUNTIME_DIR=/run/user/$(id -u);',
- 'export DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus;',
- 'export HYPRLAND_INSTANCE_SIGNATURE=$(ls -t "$XDG_RUNTIME_DIR/hypr" | head -1);',
- 'export WAYLAND_DISPLAY=$(find "$XDG_RUNTIME_DIR" -maxdepth 1 -name "wayland-*" ! -name "*.lock" -printf "%f\\n" | head -1);',
- 'export OMARCHY_PATH=/usr/share/omarchy;',
- 'export PATH="$OMARCHY_PATH/bin:$PATH";',
- ].join(' ');
-
- return execFileSync(
- 'ssh',
- [
- '-i',
- key,
- '-p',
- '2222',
- '-o',
- 'BatchMode=yes',
- '-o',
- 'IdentitiesOnly=yes',
- '-o',
- 'StrictHostKeyChecking=no',
- '-o',
- 'UserKnownHostsFile=/dev/null',
- '-o',
- 'ConnectTimeout=10',
- '-o',
- 'LogLevel=ERROR',
- `${sessionEnvironment} ${command}`,
- ],
- { encoding: 'utf8', timeout: 20_000 },
- ).trim();
-};
-
-describe.skipIf(process.env.OMARCHY_E2E !== 'true')(
- 'Omarchy shell visuals in a real Hyprland session',
- () => {
- let agent: ComputerAgent;
- let fluxbox: ChildProcess;
- let viewer: ChildProcess;
- let barConfigBackup: string | undefined;
- let barConfigExisted = false;
-
- beforeAll(async () => {
- agent = await agentFromComputer({
- aiContexts: {
- aiAssert:
- 'Inspect the real Omarchy desktop shown through VNC. ' +
- 'Judge only visible pixels. Do not infer success from an action or a configuration value.',
- },
- // TigerVNC must show the guest framebuffer without scaling or borders.
- xvfbResolution: '1280x800x24',
- });
-
- fluxbox = spawn('fluxbox', [], {
- detached: true,
- stdio: 'ignore',
- env: process.env,
- });
- await sleep(1000);
- viewer = spawn(
- 'vncviewer',
- ['-FullScreen=1', '-RemoteResize=0', '-ViewOnly=0', '127.0.0.1:5905'],
- { detached: true, stdio: 'ignore', env: process.env },
- );
- await sleep(4000);
- });
-
- afterAll(() => {
- if (barConfigBackup) {
- try {
- guest(
- `${barConfigExisted ? `cp '${barConfigBackup}' "$HOME/.config/omarchy/shell.json"` : 'rm -f "$HOME/.config/omarchy/shell.json"'}; ` +
- `omarchy-shell shell reloadConfig; rm -f '${barConfigBackup}'`,
- );
- } catch (error) {
- console.error(
- 'Could not restore the Omarchy bar configuration:',
- error,
- );
- }
- }
- try {
- guest('omarchy-shell shell hide omarchy.menu');
- } catch {
- // The disposable VM may already have stopped.
- }
- stopProcessGroup(viewer);
- stopProcessGroup(fluxbox);
- });
-
- it('shows the system menu with Shutdown and a visible focused row', async () => {
- guest('omarchy-shell shell summon omarchy.menu \'{"menu":"system"}\'');
- let menuVisible = false;
- for (let attempt = 0; attempt < 15; attempt++) {
- if (
- guest(
- 'hyprctl -j layers | jq -r \'[.. | objects | select(.namespace? == "omarchy-menu")] | length\'',
- ) !== '0'
- ) {
- menuVisible = true;
- break;
- }
- await sleep(1000);
- }
- if (!menuVisible) throw new Error('Omarchy system menu did not open');
- guest('wtype -k Down');
- await sleep(1000);
-
- await agent.aiAssert(
- 'The Omarchy system menu is open, and its Shutdown item is clearly readable.',
- );
- await agent.aiAssert(
- 'Exactly one row in the open system menu has a visible focus highlight or accent, and the highlight is rendered cleanly.',
- );
- guest('omarchy-shell shell hide omarchy.menu');
- });
-
- it('renders the bar vertically along the left screen edge', async () => {
- barConfigExisted =
- guest(
- 'test -f "$HOME/.config/omarchy/shell.json" && echo yes || echo no',
- ) === 'yes';
- barConfigBackup = guest('mktemp /tmp/omarchy-midscene-bar.XXXXXX');
- if (barConfigExisted) {
- guest(`cp "$HOME/.config/omarchy/shell.json" '${barConfigBackup}'`);
- }
- guest('omarchy bar position left');
- await sleep(2000);
-
- await agent.aiAssert(
- 'The Omarchy bar is visible as a tall vertical bar docked to the left edge of the desktop, rather than a horizontal bar across the top or bottom.',
- );
- });
- },
-);
diff --git a/tests/midscene/e2e/onboarding-flow.ts b/tests/midscene/e2e/onboarding-flow.ts
deleted file mode 100644
index a0dbbcb..0000000
--- a/tests/midscene/e2e/onboarding-flow.ts
+++ /dev/null
@@ -1,55 +0,0 @@
-import type { ComputerAgent } from '@midscene/computer';
-
-export const runOnboardingFlow = async (agent: ComputerAgent) => {
- await agent.aiAct(
- 'Verify the visible Doubao Say window starts on the Sign in step, says the user is not signed in, and shows an Open Doubao sign-in button. Do not click anything.',
- );
- await agent.aiAct(
- 'Click Open Doubao sign-in exactly once, then stop immediately.',
- );
- await new Promise((resolvePromise) => setTimeout(resolvePromise, 1500));
- await agent.aiAct(
- 'Verify a Synthetic Doubao sign-in window is visible and explicitly says it is CI-only, makes no network request, and uses no real credentials. Do not click anything.',
- );
- await agent.aiAct(
- 'In the Synthetic Doubao sign-in window, click Simulate successful sign-in exactly once, then stop immediately.',
- );
- await agent.aiAct(
- 'Verify the synthetic sign-in window closed and the visible Doubao Say window automatically advanced to the Microphone step with a Next button in the fixed top navigation.',
- );
- await agent.aiAct(
- 'Click Next in the Doubao Say fixed top navigation exactly once, then stop immediately. ' +
- 'Do not click Next a second time and do not wait for or verify the page transition.',
- );
- await agent.aiAct(
- 'Verify the current Doubao Say step is Trigger key. Do not click Previous or Next.',
- );
- await agent.aiAct(
- 'Stay on the Trigger key step and do not click Previous or Next. Scroll down inside the light-gray central content panel until the Voice polishing heading and its controls are visible.',
- );
- await agent.aiAct(
- 'On the current Trigger key step, click Test endpoint in the visible Voice polishing section and wait for the endpoint result.',
- );
- await agent.aiAct(
- 'Verify a visible message says the endpoint works and includes Synthetic endpoint response.',
- );
- await agent.aiAct(
- 'Click Next in the fixed top navigation exactly once, then stop immediately. ' +
- 'Do not click Next a second time and do not wait for or verify the page transition.',
- );
- await agent.aiAct(
- 'Verify the current Doubao Say step is Voice test. Do not click Previous or Next.',
- );
- await agent.aiAct(
- 'Verify the Voice test heading and introductory text are visible near the top of the content, proving that navigation reset the previous scroll position.',
- );
- await agent.aiAct(
- 'Scroll within the current Voice test content if needed and click Finish setup exactly once. ' +
- 'The click is successful when that same button changes to the disabled status ' +
- 'Setup completed by the synthetic E2E fixture. When that status appears, stop immediately, ' +
- 'do not search for Finish setup again, and do not click Previous or Next.',
- );
- await agent.aiAct(
- 'Verify the Finish setup button changed to a disabled visible status saying Setup completed by the synthetic E2E fixture.',
- );
-};
diff --git a/tests/midscene/e2e/onboarding.test.ts b/tests/midscene/e2e/onboarding.test.ts
deleted file mode 100644
index 1d34793..0000000
--- a/tests/midscene/e2e/onboarding.test.ts
+++ /dev/null
@@ -1,97 +0,0 @@
-import { spawn, type ChildProcess } from 'node:child_process';
-import { resolve } from 'node:path';
-import { afterAll, beforeAll, describe, it } from '@rstest/core';
-import {
- type ComputerAgent,
- agentFromComputer,
-} from '@midscene/computer';
-import { runOnboardingFlow } from './onboarding-flow';
-
-const sleep = (milliseconds: number) =>
- new Promise((resolvePromise) => setTimeout(resolvePromise, milliseconds));
-
-const stopProcessGroup = (child?: ChildProcess) => {
- if (!child?.pid) return;
- try {
- process.kill(-child.pid, 'SIGTERM');
- } catch {
- // The fixture may already have exited after a test failure.
- }
-};
-
-const waitForFixture = (child: ChildProcess) =>
- new Promise<void>((resolvePromise, rejectPromise) => {
- let diagnostics = '';
- const timeout = setTimeout(() => {
- rejectPromise(
- new Error(`GTK fixture did not become ready:\n${diagnostics}`),
- );
- }, 15_000);
- const capture = (chunk: Buffer) => {
- diagnostics += chunk.toString();
- if (diagnostics.includes('READY: synthetic Doubao Say GTK fixture')) {
- clearTimeout(timeout);
- resolvePromise();
- }
- };
- child.stdout?.on('data', capture);
- child.stderr?.on('data', capture);
- child.once('exit', (code, signal) => {
- clearTimeout(timeout);
- rejectPromise(
- new Error(
- `GTK fixture exited before ready (${code ?? signal}):\n${diagnostics}`,
- ),
- );
- });
- });
-
-describe('Doubao Say onboarding', () => {
- let agent: ComputerAgent;
- let fluxbox: ChildProcess;
- let fixture: ChildProcess;
-
- beforeAll(async () => {
- agent = await agentFromComputer({
- aiContexts: {
- aiAct:
- 'You are testing the English Doubao Say GTK onboarding window. ' +
- 'Interact only with the Doubao Say window and use visible labels.',
- },
- xvfbResolution: '1280x960x24',
- });
-
- fluxbox = spawn('fluxbox', [], {
- detached: true,
- stdio: 'ignore',
- env: process.env,
- });
- await sleep(1000);
-
- const repositoryRoot = resolve(import.meta.dirname, '../../..');
- fixture = spawn('/usr/bin/python3', ['tests/midscene/gtk_fixture.py'], {
- cwd: repositoryRoot,
- detached: true,
- stdio: ['ignore', 'pipe', 'pipe'],
- env: {
- ...process.env,
- GDK_BACKEND: 'x11',
- GSK_RENDERER: 'cairo',
- GTK_A11Y: 'none',
- PYTHONPATH: resolve(repositoryRoot, 'src'),
- XDG_CONFIG_HOME: resolve(repositoryRoot, '.midscene-config'),
- },
- });
- await waitForFixture(fixture);
- await sleep(1000);
- });
-
- afterAll(() => {
- stopProcessGroup(fixture);
- stopProcessGroup(fluxbox);
- });
-
- it('navigates, reports endpoint feedback, resets scroll and completes setup', async () => {
- await runOnboardingFlow(agent);
- });
-});
diff --git a/tests/midscene/midscene-node-reference.md b/tests/midscene/midscene-node-reference.md
new file mode 100644
index 0000000..d497907
--- /dev/null
+++ b/tests/midscene/midscene-node-reference.md
@@ -0,0 +1,865 @@
+<!-- Generated by `midscene-test nodes`. Do not edit directly. -->
+
+# Midscene Test Node Reference
+
+This document describes the nodes registered by the current Test Project.
+
+## Available Nodes
+
+This table lists all available Nodes. See [Node Details](#node-details) below for each Node's usage and input schema.
+
+| Node | Description |
+| --- | --- |
+| aiAct | Perform a natural-language task with a Midscene UI Agent. |
+| aiAssert | Assert a natural-language condition with a Midscene UI Agent. |
+| aiAsk | Run aiAsk with a Midscene UI Agent and store its value. |
+| aiBoolean | Run aiBoolean with a Midscene UI Agent and store its value. |
+| aiNumber | Run aiNumber with a Midscene UI Agent and store its value. |
+| aiString | Run aiString with a Midscene UI Agent and store its value. |
+| aiTap | Locate and tap an element with a Midscene UI Agent. |
+| recordToReport | Add text or screenshots to the current Midscene report. |
+| shell.closeSystemMenu | Close the Omarchy system menu. |
+| shell.moveBarLeft | Back up Omarchy bar settings and dock the bar left. |
+| shell.openSystemMenu | Open the real Omarchy system menu and focus one row. |
+| wait | Wait for a fixed duration while honoring cancellation. |
+
+## Where to use these Nodes
+
+Use these Nodes in Workflow Documents (`.yaml` or `.yml` files) selected by an Execution Project. Case file patterns and the config file path below are relative to this reference file. Case file patterns use glob syntax. A custom `--config` path does not change where case files are selected.
+
+Projects created by `midscene-test create` select `cases/**/*.{yaml,yml}` by default, so you can write test cases in `cases/example.yaml` or subdirectories of `cases/`. If an Execution Project has no `files` configuration, Midscene Test searches `**/*.{yaml,yml}` recursively instead. Check `projects[].files` in your configuration before choosing a file location.
+
+**Config file:** `midscene.config.ts`
+
+**Case files:** `cases/onboarding.yaml` (Execution Project: ubuntu)
+
+**Case files:** `cases/onboarding.yaml` (Execution Project: omarchy-onboarding)
+
+**Case files:** `cases/omarchy-shell.yaml` (Execution Project: omarchy-shell)
+
+Files matching `files.exclude` are not selected. Midscene Test always ignores `.git/`, `.midscene/`, `midscene_run/`, and `node_modules/` directories, including nested ones.
+
+Call a Node in `cases[].steps`, or in the Workflow Document lifecycle steps `beforeAll`, `beforeEach`, `afterEach`, and `afterAll`. Root Nodes are shared defaults; `projects[].nodes` adds local Nodes and overrides same-named root Nodes only within that Execution Project. Each Execution Project supplies its own runtime environment.
+
+## Workflow Step Contract
+
+Each step uses a node name as its key. The `$` object contains engine metadata and is not part of the node input.
+
+```yaml
+cases:
+ - name: Example case
+ steps:
+ - node.name:
+ prompt: Describe the task.
+ $:
+ timeout: 30000
+ continue-on-error: false
+```
+
+A Node may map a string step value to one declared input field. Each Node section states whether it supports this shorthand and names the target field.
+
+## Node Details
+
+### `aiAct`
+
+Perform a natural-language task with a Midscene UI Agent.
+
+**String shorthand:** Maps to `{ prompt: value }`.
+
+#### Input Schema
+
+```json
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "options": {
+ "additionalProperties": false,
+ "properties": {
+ "cacheable": {
+ "type": "boolean"
+ },
+ "context": {
+ "type": "string"
+ },
+ "deepLocate": {
+ "type": "boolean"
+ },
+ "deepThink": {
+ "anyOf": [
+ {
+ "const": "unset",
+ "type": "string"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "fileChooserAccept": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ ]
+ },
+ "fileChooserAllowedDir": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "prompt": {
+ "anyOf": [
+ {
+ "pattern": "\\S",
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "convertHttpImage2Base64": {
+ "type": "boolean"
+ },
+ "images": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "name": {
+ "pattern": "\\S",
+ "type": "string"
+ },
+ "url": {
+ "pattern": "\\S",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "url"
+ ],
+ "type": "object"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "prompt": {
+ "pattern": "\\S",
+ "type": "string"
+ }
+ },
+ "required": [
+ "prompt"
+ ],
+ "type": "object"
+ }
+ ]
+ }
+ },
+ "required": [
+ "prompt"
+ ],
+ "type": "object"
+}
+```
+
+### `aiAssert`
+
+Assert a natural-language condition with a Midscene UI Agent.
+
+**String shorthand:** Maps to `{ prompt: value }`.
+
+#### Input Schema
+
+```json
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "message": {
+ "type": "string"
+ },
+ "options": {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "type": "string"
+ },
+ "domIncluded": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "const": "visible-only",
+ "type": "string"
+ }
+ ]
+ },
+ "keepRawResponse": {
+ "type": "boolean"
+ },
+ "screenshotIncluded": {
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "prompt": {
+ "anyOf": [
+ {
+ "pattern": "\\S",
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "convertHttpImage2Base64": {
+ "type": "boolean"
+ },
+ "images": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "name": {
+ "pattern": "\\S",
+ "type": "string"
+ },
+ "url": {
+ "pattern": "\\S",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "url"
+ ],
+ "type": "object"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "prompt": {
+ "pattern": "\\S",
+ "type": "string"
+ }
+ },
+ "required": [
+ "prompt"
+ ],
+ "type": "object"
+ }
+ ]
+ }
+ },
+ "required": [
+ "prompt"
+ ],
+ "type": "object"
+}
+```
+
+### `aiAsk`
+
+Run aiAsk with a Midscene UI Agent and store its value.
+
+**String shorthand:** Maps to `{ prompt: value }`.
+
+#### Input Schema
+
+```json
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "options": {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "type": "string"
+ },
+ "domIncluded": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "const": "visible-only",
+ "type": "string"
+ }
+ ]
+ },
+ "screenshotIncluded": {
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "prompt": {
+ "anyOf": [
+ {
+ "pattern": "\\S",
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "convertHttpImage2Base64": {
+ "type": "boolean"
+ },
+ "images": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "name": {
+ "pattern": "\\S",
+ "type": "string"
+ },
+ "url": {
+ "pattern": "\\S",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "url"
+ ],
+ "type": "object"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "prompt": {
+ "pattern": "\\S",
+ "type": "string"
+ }
+ },
+ "required": [
+ "prompt"
+ ],
+ "type": "object"
+ }
+ ]
+ }
+ },
+ "required": [
+ "prompt"
+ ],
+ "type": "object"
+}
+```
+
+### `aiBoolean`
+
+Run aiBoolean with a Midscene UI Agent and store its value.
+
+**String shorthand:** Maps to `{ prompt: value }`.
+
+#### Input Schema
+
+```json
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "options": {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "type": "string"
+ },
+ "domIncluded": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "const": "visible-only",
+ "type": "string"
+ }
+ ]
+ },
+ "screenshotIncluded": {
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "prompt": {
+ "anyOf": [
+ {
+ "pattern": "\\S",
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "convertHttpImage2Base64": {
+ "type": "boolean"
+ },
+ "images": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "name": {
+ "pattern": "\\S",
+ "type": "string"
+ },
+ "url": {
+ "pattern": "\\S",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "url"
+ ],
+ "type": "object"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "prompt": {
+ "pattern": "\\S",
+ "type": "string"
+ }
+ },
+ "required": [
+ "prompt"
+ ],
+ "type": "object"
+ }
+ ]
+ }
+ },
+ "required": [
+ "prompt"
+ ],
+ "type": "object"
+}
+```
+
+### `aiNumber`
+
+Run aiNumber with a Midscene UI Agent and store its value.
+
+**String shorthand:** Maps to `{ prompt: value }`.
+
+#### Input Schema
+
+```json
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "options": {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "type": "string"
+ },
+ "domIncluded": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "const": "visible-only",
+ "type": "string"
+ }
+ ]
+ },
+ "screenshotIncluded": {
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "prompt": {
+ "anyOf": [
+ {
+ "pattern": "\\S",
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "convertHttpImage2Base64": {
+ "type": "boolean"
+ },
+ "images": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "name": {
+ "pattern": "\\S",
+ "type": "string"
+ },
+ "url": {
+ "pattern": "\\S",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "url"
+ ],
+ "type": "object"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "prompt": {
+ "pattern": "\\S",
+ "type": "string"
+ }
+ },
+ "required": [
+ "prompt"
+ ],
+ "type": "object"
+ }
+ ]
+ }
+ },
+ "required": [
+ "prompt"
+ ],
+ "type": "object"
+}
+```
+
+### `aiString`
+
+Run aiString with a Midscene UI Agent and store its value.
+
+**String shorthand:** Maps to `{ prompt: value }`.
+
+#### Input Schema
+
+```json
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "options": {
+ "additionalProperties": false,
+ "properties": {
+ "context": {
+ "type": "string"
+ },
+ "domIncluded": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "const": "visible-only",
+ "type": "string"
+ }
+ ]
+ },
+ "screenshotIncluded": {
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "prompt": {
+ "anyOf": [
+ {
+ "pattern": "\\S",
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "convertHttpImage2Base64": {
+ "type": "boolean"
+ },
+ "images": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "name": {
+ "pattern": "\\S",
+ "type": "string"
+ },
+ "url": {
+ "pattern": "\\S",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "url"
+ ],
+ "type": "object"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "prompt": {
+ "pattern": "\\S",
+ "type": "string"
+ }
+ },
+ "required": [
+ "prompt"
+ ],
+ "type": "object"
+ }
+ ]
+ }
+ },
+ "required": [
+ "prompt"
+ ],
+ "type": "object"
+}
+```
+
+### `aiTap`
+
+Locate and tap an element with a Midscene UI Agent.
+
+**String shorthand:** Maps to `{ prompt: value }`.
+
+#### Input Schema
+
+```json
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "options": {
+ "additionalProperties": false,
+ "properties": {
+ "cacheable": {
+ "type": "boolean"
+ },
+ "context": {
+ "type": "string"
+ },
+ "deepLocate": {
+ "type": "boolean"
+ },
+ "deepThink": {
+ "type": "boolean"
+ },
+ "fileChooserAccept": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ }
+ ]
+ },
+ "xpath": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "prompt": {
+ "anyOf": [
+ {
+ "pattern": "\\S",
+ "type": "string"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "convertHttpImage2Base64": {
+ "type": "boolean"
+ },
+ "images": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "name": {
+ "pattern": "\\S",
+ "type": "string"
+ },
+ "url": {
+ "pattern": "\\S",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "url"
+ ],
+ "type": "object"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "prompt": {
+ "pattern": "\\S",
+ "type": "string"
+ }
+ },
+ "required": [
+ "prompt"
+ ],
+ "type": "object"
+ }
+ ]
+ }
+ },
+ "required": [
+ "prompt"
+ ],
+ "type": "object"
+}
+```
+
+### `recordToReport`
+
+Add text or screenshots to the current Midscene report.
+
+**String shorthand:** Maps to `{ title: value }`.
+
+#### Input Schema
+
+```json
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "options": {
+ "additionalProperties": false,
+ "properties": {
+ "content": {
+ "type": "string"
+ },
+ "screenshotBase64": {
+ "type": "string"
+ },
+ "screenshots": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "base64": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "base64"
+ ],
+ "type": "object"
+ },
+ "minItems": 1,
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "title": {
+ "type": "string"
+ }
+ },
+ "type": "object"
+}
+```
+
+### `shell.closeSystemMenu`
+
+Close the Omarchy system menu.
+
+**String shorthand:** Not supported by this Node.
+
+#### Input Schema
+
+```json
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {},
+ "type": "object"
+}
+```
+
+### `shell.moveBarLeft`
+
+Back up Omarchy bar settings and dock the bar left.
+
+**String shorthand:** Not supported by this Node.
+
+#### Input Schema
+
+```json
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {},
+ "type": "object"
+}
+```
+
+### `shell.openSystemMenu`
+
+Open the real Omarchy system menu and focus one row.
+
+**String shorthand:** Not supported by this Node.
+
+#### Input Schema
+
+```json
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {},
+ "type": "object"
+}
+```
+
+### `wait`
+
+Wait for a fixed duration while honoring cancellation.
+
+**String shorthand:** Not supported by this Node.
+
+#### Input Schema
+
+```json
+{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "duration": {
+ "exclusiveMinimum": 0,
+ "type": "number"
+ },
+ "unit": {
+ "default": "ms",
+ "enum": [
+ "ms",
+ "s",
+ "min"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "duration"
+ ],
+ "type": "object"
+}
+```
diff --git a/tests/midscene/midscene.config.ts b/tests/midscene/midscene.config.ts
new file mode 100644
index 0000000..582df29
--- /dev/null
+++ b/tests/midscene/midscene.config.ts
@@ -0,0 +1,175 @@
+import { execFileSync, spawn, type ChildProcess } from 'node:child_process';
+import { resolve } from 'node:path';
+import { ComputerAgent, agentForComputer } from '@midscene/computer';
+import { defineNode, z } from '@midscene/test';
+import { defineProjectSetup, defineTestProject } from '@midscene/test/config';
+import { createMidsceneNodes } from '@midscene/test/midscene';
+
+interface DesktopContext {
+ agent: ComputerAgent;
+ barConfigBackup?: string;
+ barConfigExisted?: boolean;
+}
+
+const sleep = (ms: number) => new Promise((done) => setTimeout(done, ms));
+const stop = (child?: ChildProcess) => {
+ if (child?.pid) {
+ try { process.kill(-child.pid, 'SIGTERM'); } catch { /* already exited */ }
+ }
+};
+
+function guest(command: string): string {
+ const key = process.env.OMARCHY_SSH_KEY;
+ if (!key) throw new Error('OMARCHY_SSH_KEY is required for shell tests');
+ const env = [
+ 'export XDG_RUNTIME_DIR=/run/user/$(id -u);',
+ 'export DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus;',
+ 'export HYPRLAND_INSTANCE_SIGNATURE=$(ls -t "$XDG_RUNTIME_DIR/hypr" | head -1);',
+ 'export WAYLAND_DISPLAY=$(find "$XDG_RUNTIME_DIR" -maxdepth 1 -name "wayland-*" ! -name "*.lock" -printf "%f\\n" | head -1);',
+ 'export OMARCHY_PATH=/usr/share/omarchy;',
+ 'export PATH="$OMARCHY_PATH/bin:$PATH";',
+ ].join(' ');
+ return execFileSync('ssh', [
+ '-i', key, '-p', '2222', '-o', 'BatchMode=yes', '-o', 'IdentitiesOnly=yes',
+ '-o', 'StrictHostKeyChecking=no', '-o', 'UserKnownHostsFile=/dev/null',
+ '-o', 'ConnectTimeout=10', '-o', 'LogLevel=ERROR',
+ '[email protected]', `${env} ${command}`,
+ ], { encoding: 'utf8', timeout: 20_000 }).trim();
+}
+
+async function waitForFixture(child: ChildProcess): Promise<void> {
+ await new Promise<void>((done, fail) => {
+ let output = '';
+ const timer = setTimeout(() => fail(new Error(`GTK fixture not ready:\n${output}`)), 15_000);
+ const capture = (chunk: Buffer) => {
+ output += chunk.toString();
+ if (output.includes('READY: synthetic Doubao Say GTK fixture')) {
+ clearTimeout(timer);
+ done();
+ }
+ };
+ child.stdout?.on('data', capture);
+ child.stderr?.on('data', capture);
+ child.once('exit', (code) => {
+ clearTimeout(timer);
+ fail(new Error(`GTK fixture exited (${code}):\n${output}`));
+ });
+ });
+}
+
+const setup = defineProjectSetup<DesktopContext>({
+ name: 'desktop',
+ async setup({ project, onTeardown }) {
+ const omarchy = project.name.startsWith('omarchy-');
+ const shell = project.name === 'omarchy-shell';
+ const agent = await agentForComputer({
+ xvfbResolution: omarchy ? '1280x800x24' : '1280x960x24',
+ // libnut and the VNC viewer may still hold X11 connections while the
+ // Agent finalizes its report. Stop Xvfb only after this process exits.
+ keepXvfbAliveUntilProcessExit: true,
+ aiContexts: shell
+ ? { aiAssert: 'Inspect the real Omarchy desktop through VNC. Judge only visible pixels; do not infer success from commands or configuration.' }
+ : { aiAct: `Test the English Doubao Say GTK onboarding window${omarchy ? ' inside a real Omarchy VM shown through VNC' : ''}. Interact only with Doubao Say and use visible labels.` },
+ });
+ onTeardown(() => agent.destroy());
+ const fluxbox = spawn('fluxbox', [], { detached: true, stdio: 'ignore', env: process.env });
+ onTeardown(() => stop(fluxbox));
+ await sleep(1000);
+ if (omarchy) {
+ const viewer = spawn('vncviewer', ['-FullScreen=1', '-RemoteResize=0', '-ViewOnly=0', '127.0.0.1:5905'], {
+ detached: true, stdio: 'ignore', env: process.env,
+ });
+ onTeardown(() => stop(viewer));
+ await sleep(4000);
+ } else {
+ const root = resolve(import.meta.dirname, '../..');
+ const fixture = spawn('/usr/bin/python3', ['tests/midscene/gtk_fixture.py'], {
+ cwd: root, detached: true, stdio: ['ignore', 'pipe', 'pipe'],
+ env: {
+ ...process.env, GDK_BACKEND: 'x11', GSK_RENDERER: 'cairo', GTK_A11Y: 'none',
+ PYTHONPATH: resolve(root, 'src'), XDG_CONFIG_HOME: resolve(root, '.midscene-config'),
+ },
+ });
+ onTeardown(() => stop(fixture));
+ await waitForFixture(fixture);
+ await sleep(1000);
+ }
+ const context: DesktopContext = { agent };
+ if (shell) {
+ onTeardown(() => {
+ try {
+ if (context.barConfigBackup) {
+ guest(`${context.barConfigExisted ? `cp '${context.barConfigBackup}' "$HOME/.config/omarchy/shell.json"` : 'rm -f "$HOME/.config/omarchy/shell.json"'}; omarchy-shell shell reloadConfig; rm -f '${context.barConfigBackup}'`);
+ }
+ guest('omarchy-shell shell hide omarchy.menu');
+ } catch (error) {
+ console.error('Could not restore Omarchy shell state:', error);
+ }
+ });
+ }
+ return context;
+ },
+});
+
+const empty = z.strictObject({});
+const openSystemMenu = defineNode<typeof empty, void, DesktopContext>({
+ name: 'shell.openSystemMenu', description: 'Open the real Omarchy system menu and focus one row.', inputSchema: empty,
+ async execute() {
+ guest('omarchy-shell shell summon omarchy.menu \'{"menu":"system"}\'');
+ for (let attempt = 0; attempt < 15; attempt++) {
+ if (guest('hyprctl -j layers | jq -r \'[.. | objects | select(.namespace? == "omarchy-menu")] | length\'') !== '0') {
+ guest('wtype -k Down');
+ await sleep(1000);
+ return;
+ }
+ await sleep(1000);
+ }
+ throw new Error('Omarchy system menu did not open');
+ },
+});
+const closeSystemMenu = defineNode<typeof empty, void, DesktopContext>({
+ name: 'shell.closeSystemMenu', description: 'Close the Omarchy system menu.', inputSchema: empty,
+ execute() { guest('omarchy-shell shell hide omarchy.menu'); },
+});
+const moveBarLeft = defineNode<typeof empty, void, DesktopContext>({
+ name: 'shell.moveBarLeft', description: 'Back up Omarchy bar settings and dock the bar left.', inputSchema: empty,
+ async execute({ context }) {
+ context.barConfigExisted = guest('test -f "$HOME/.config/omarchy/shell.json" && echo yes || echo no') === 'yes';
+ context.barConfigBackup = guest('mktemp /tmp/omarchy-midscene-bar.XXXXXX');
+ if (context.barConfigExisted) guest(`cp "$HOME/.config/omarchy/shell.json" '${context.barConfigBackup}'`);
+ guest('omarchy bar position left');
+ await sleep(2000);
+ },
+});
+
+export default defineTestProject<DesktopContext>({
+ test: { maxConcurrency: 1, testTimeout: 8 * 60_000 },
+ projects: [
+ { name: 'ubuntu', setup, files: { include: ['cases/onboarding.yaml'] } },
+ { name: 'omarchy-onboarding', setup, files: { include: ['cases/onboarding.yaml'] } },
+ { name: 'omarchy-shell', setup, files: { include: ['cases/omarchy-shell.yaml'] } },
+ ],
+ nodes: [
+ ...createMidsceneNodes<DesktopContext>({
+ agentClass: ComputerAgent,
+ agentProvider: (() => {
+ const active = new Map<string, ComputerAgent>();
+ return {
+ getAgent(runId: string, { context }: { context: DesktopContext }) {
+ active.set(runId, context.agent);
+ return context.agent;
+ },
+ async releaseAgent(runId: string) {
+ const agent = active.get(runId);
+ if (!agent) throw new Error(`No Agent for Midscene case ${runId}`);
+ active.delete(runId);
+ await agent.destroy();
+ if (!agent.reportFile) throw new Error(`No Agent report for Midscene case ${runId}`);
+ return { reportPath: agent.reportFile };
+ },
+ };
+ })(),
+ }),
+ openSystemMenu, closeSystemMenu, moveBarLeft,
+ ],
+});
diff --git a/tests/midscene/package-lock.json b/tests/midscene/package-lock.json
index 3c90b00..db89e49 100644
--- a/tests/midscene/package-lock.json
+++ b/tests/midscene/package-lock.json
@@ -8,10 +8,14 @@
"name": "doubao-say-midscene-e2e",
"version": "1.0.0",
"devDependencies": {
+ "@midscene/computer": "1.12.8",
+ "@midscene/test": "1.12.8",
+ "@types/node": "^22.0.0",
+ "typescript": "^5.8.3"
+ },
+ "optionalDependencies": {
"@img/sharp-libvips-linux-x64": "1.2.4",
- "@img/sharp-linux-x64": "0.34.5",
- "@midscene/computer": "1.12.6",
- "@rstest/core": "0.11.12"
+ "@img/sharp-linux-x64": "0.34.5"
}
},
"node_modules/@computer-use/default-clipboard-provider": {
@@ -410,18 +414,6 @@
"node-abort-controller": "3.1.1"
}
},
- "node_modules/@emnapi/core": {
- "version": "1.11.3",
- "resolved": "https://registry.npmmirror.com/@emnapi/core/-/core-1.11.3.tgz",
- "integrity": "sha512-zLpS5asjEb7lq8jYLq37N6XKaE41DIexlY1rF/z4/tIl3wo13Sqm28fRyfIsKZD+NZ8mM5RoKkpW/rBcuoSZSg==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "@emnapi/wasi-threads": "1.2.3",
- "tslib": "^2.4.0"
- }
- },
"node_modules/@emnapi/runtime": {
"version": "1.11.3",
"resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz",
@@ -433,352 +425,819 @@
"tslib": "^2.4.0"
}
},
- "node_modules/@emnapi/wasi-threads": {
- "version": "1.2.3",
- "resolved": "https://registry.npmmirror.com/@emnapi/wasi-threads/-/wasi-threads-1.2.3.tgz",
- "integrity": "sha512-ELEBe8PsLvvJ6QMr0zLt8ffvOHW/dc1m3CEzNMg7aJUv3bMaoDtw2TXyDAwkYBuroxxuHEwhRTLJSe5sya547g==",
+ "node_modules/@esbuild/aix-ppc64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz",
+ "integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==",
+ "cpu": [
+ "ppc64"
+ ],
"dev": true,
"license": "MIT",
"optional": true,
- "dependencies": {
- "tslib": "^2.4.0"
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=18"
}
},
- "node_modules/@img/colour": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz",
- "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==",
+ "node_modules/@esbuild/android-arm": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz",
+ "integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==",
+ "cpu": [
+ "arm"
+ ],
"dev": true,
"license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
"engines": {
"node": ">=18"
}
},
- "node_modules/@img/sharp-darwin-arm64": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.34.5.tgz",
- "integrity": "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==",
+ "node_modules/@esbuild/android-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz",
+ "integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==",
"cpu": [
"arm64"
],
"dev": true,
- "license": "Apache-2.0",
+ "license": "MIT",
"optional": true,
"os": [
- "darwin"
+ "android"
],
"engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/libvips"
- },
- "optionalDependencies": {
- "@img/sharp-libvips-darwin-arm64": "1.2.4"
+ "node": ">=18"
}
},
- "node_modules/@img/sharp-darwin-x64": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.34.5.tgz",
- "integrity": "sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==",
+ "node_modules/@esbuild/android-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz",
+ "integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==",
"cpu": [
"x64"
],
"dev": true,
- "license": "Apache-2.0",
+ "license": "MIT",
"optional": true,
"os": [
- "darwin"
+ "android"
],
"engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/libvips"
- },
- "optionalDependencies": {
- "@img/sharp-libvips-darwin-x64": "1.2.4"
+ "node": ">=18"
}
},
- "node_modules/@img/sharp-libvips-darwin-arm64": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.2.4.tgz",
- "integrity": "sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==",
+ "node_modules/@esbuild/darwin-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz",
+ "integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==",
"cpu": [
"arm64"
],
"dev": true,
- "license": "LGPL-3.0-or-later",
+ "license": "MIT",
"optional": true,
"os": [
"darwin"
],
- "funding": {
- "url": "https://opencollective.com/libvips"
+ "engines": {
+ "node": ">=18"
}
},
- "node_modules/@img/sharp-libvips-darwin-x64": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.2.4.tgz",
- "integrity": "sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==",
+ "node_modules/@esbuild/darwin-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz",
+ "integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==",
"cpu": [
"x64"
],
"dev": true,
- "license": "LGPL-3.0-or-later",
+ "license": "MIT",
"optional": true,
"os": [
"darwin"
],
- "funding": {
- "url": "https://opencollective.com/libvips"
+ "engines": {
+ "node": ">=18"
}
},
- "node_modules/@img/sharp-libvips-linux-arm": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.2.4.tgz",
- "integrity": "sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==",
+ "node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz",
+ "integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==",
"cpu": [
- "arm"
+ "arm64"
],
"dev": true,
- "license": "LGPL-3.0-or-later",
+ "license": "MIT",
"optional": true,
"os": [
- "linux"
+ "freebsd"
],
- "funding": {
- "url": "https://opencollective.com/libvips"
+ "engines": {
+ "node": ">=18"
}
},
- "node_modules/@img/sharp-libvips-linux-arm64": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.2.4.tgz",
- "integrity": "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==",
+ "node_modules/@esbuild/freebsd-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz",
+ "integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==",
"cpu": [
- "arm64"
+ "x64"
],
"dev": true,
- "license": "LGPL-3.0-or-later",
+ "license": "MIT",
"optional": true,
"os": [
- "linux"
+ "freebsd"
],
- "funding": {
- "url": "https://opencollective.com/libvips"
+ "engines": {
+ "node": ">=18"
}
},
- "node_modules/@img/sharp-libvips-linux-ppc64": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.2.4.tgz",
- "integrity": "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==",
+ "node_modules/@esbuild/linux-arm": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz",
+ "integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==",
"cpu": [
- "ppc64"
+ "arm"
],
"dev": true,
- "license": "LGPL-3.0-or-later",
+ "license": "MIT",
"optional": true,
"os": [
"linux"
],
- "funding": {
- "url": "https://opencollective.com/libvips"
+ "engines": {
+ "node": ">=18"
}
},
- "node_modules/@img/sharp-libvips-linux-riscv64": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.2.4.tgz",
- "integrity": "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==",
+ "node_modules/@esbuild/linux-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz",
+ "integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==",
"cpu": [
- "riscv64"
+ "arm64"
],
"dev": true,
- "license": "LGPL-3.0-or-later",
+ "license": "MIT",
"optional": true,
"os": [
"linux"
],
- "funding": {
- "url": "https://opencollective.com/libvips"
+ "engines": {
+ "node": ">=18"
}
},
- "node_modules/@img/sharp-libvips-linux-s390x": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.2.4.tgz",
- "integrity": "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==",
+ "node_modules/@esbuild/linux-ia32": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz",
+ "integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==",
"cpu": [
- "s390x"
+ "ia32"
],
"dev": true,
- "license": "LGPL-3.0-or-later",
+ "license": "MIT",
"optional": true,
"os": [
"linux"
],
- "funding": {
- "url": "https://opencollective.com/libvips"
+ "engines": {
+ "node": ">=18"
}
},
- "node_modules/@img/sharp-libvips-linux-x64": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.2.4.tgz",
- "integrity": "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==",
+ "node_modules/@esbuild/linux-loong64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz",
+ "integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==",
"cpu": [
- "x64"
+ "loong64"
],
"dev": true,
- "license": "LGPL-3.0-or-later",
+ "license": "MIT",
+ "optional": true,
"os": [
"linux"
],
- "funding": {
- "url": "https://opencollective.com/libvips"
+ "engines": {
+ "node": ">=18"
}
},
- "node_modules/@img/sharp-libvips-linuxmusl-arm64": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.2.4.tgz",
- "integrity": "sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==",
+ "node_modules/@esbuild/linux-mips64el": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz",
+ "integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==",
"cpu": [
- "arm64"
+ "mips64el"
],
"dev": true,
- "license": "LGPL-3.0-or-later",
+ "license": "MIT",
"optional": true,
"os": [
"linux"
],
- "funding": {
- "url": "https://opencollective.com/libvips"
+ "engines": {
+ "node": ">=18"
}
},
- "node_modules/@img/sharp-libvips-linuxmusl-x64": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.2.4.tgz",
- "integrity": "sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==",
+ "node_modules/@esbuild/linux-ppc64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz",
+ "integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==",
"cpu": [
- "x64"
+ "ppc64"
],
"dev": true,
- "license": "LGPL-3.0-or-later",
+ "license": "MIT",
"optional": true,
"os": [
"linux"
],
- "funding": {
- "url": "https://opencollective.com/libvips"
+ "engines": {
+ "node": ">=18"
}
},
- "node_modules/@img/sharp-linux-arm": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.34.5.tgz",
- "integrity": "sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==",
+ "node_modules/@esbuild/linux-riscv64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz",
+ "integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==",
"cpu": [
- "arm"
+ "riscv64"
],
"dev": true,
- "license": "Apache-2.0",
+ "license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/libvips"
- },
- "optionalDependencies": {
- "@img/sharp-libvips-linux-arm": "1.2.4"
+ "node": ">=18"
}
},
- "node_modules/@img/sharp-linux-arm64": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.34.5.tgz",
- "integrity": "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==",
+ "node_modules/@esbuild/linux-s390x": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz",
+ "integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==",
"cpu": [
- "arm64"
+ "s390x"
],
"dev": true,
- "license": "Apache-2.0",
+ "license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/libvips"
- },
- "optionalDependencies": {
- "@img/sharp-libvips-linux-arm64": "1.2.4"
+ "node": ">=18"
}
},
- "node_modules/@img/sharp-linux-ppc64": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.34.5.tgz",
- "integrity": "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==",
+ "node_modules/@esbuild/linux-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz",
+ "integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==",
"cpu": [
- "ppc64"
+ "x64"
],
"dev": true,
- "license": "Apache-2.0",
+ "license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/libvips"
- },
- "optionalDependencies": {
- "@img/sharp-libvips-linux-ppc64": "1.2.4"
+ "node": ">=18"
}
},
- "node_modules/@img/sharp-linux-riscv64": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.34.5.tgz",
- "integrity": "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==",
+ "node_modules/@esbuild/netbsd-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz",
+ "integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==",
"cpu": [
- "riscv64"
+ "arm64"
],
"dev": true,
- "license": "Apache-2.0",
+ "license": "MIT",
"optional": true,
"os": [
- "linux"
+ "netbsd"
],
"engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/libvips"
- },
- "optionalDependencies": {
- "@img/sharp-libvips-linux-riscv64": "1.2.4"
+ "node": ">=18"
}
},
- "node_modules/@img/sharp-linux-s390x": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.34.5.tgz",
- "integrity": "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==",
+ "node_modules/@esbuild/netbsd-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz",
+ "integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==",
"cpu": [
- "s390x"
+ "x64"
],
"dev": true,
- "license": "Apache-2.0",
+ "license": "MIT",
"optional": true,
"os": [
- "linux"
+ "netbsd"
],
"engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
- },
- "funding": {
- "url": "https://opencollective.com/libvips"
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz",
+ "integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz",
+ "integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openharmony-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz",
+ "integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/sunos-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz",
+ "integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-arm64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz",
+ "integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-ia32": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz",
+ "integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-x64": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz",
+ "integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@img/colour": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz",
+ "integrity": "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@img/sharp-darwin-arm64": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.34.5.tgz",
+ "integrity": "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-darwin-arm64": "1.2.4"
+ }
+ },
+ "node_modules/@img/sharp-darwin-x64": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.34.5.tgz",
+ "integrity": "sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-darwin-x64": "1.2.4"
+ }
+ },
+ "node_modules/@img/sharp-libvips-darwin-arm64": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.2.4.tgz",
+ "integrity": "sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-darwin-x64": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.2.4.tgz",
+ "integrity": "sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-arm": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.2.4.tgz",
+ "integrity": "sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-arm64": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.2.4.tgz",
+ "integrity": "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-ppc64": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.2.4.tgz",
+ "integrity": "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-riscv64": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.2.4.tgz",
+ "integrity": "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-s390x": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.2.4.tgz",
+ "integrity": "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linux-x64": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.2.4.tgz",
+ "integrity": "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==",
+ "cpu": [
+ "x64"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linuxmusl-arm64": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.2.4.tgz",
+ "integrity": "sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-libvips-linuxmusl-x64": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.2.4.tgz",
+ "integrity": "sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-linux-arm": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.34.5.tgz",
+ "integrity": "sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-arm": "1.2.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-arm64": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.34.5.tgz",
+ "integrity": "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-arm64": "1.2.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-ppc64": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.34.5.tgz",
+ "integrity": "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-ppc64": "1.2.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-riscv64": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.34.5.tgz",
+ "integrity": "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ },
+ "optionalDependencies": {
+ "@img/sharp-libvips-linux-riscv64": "1.2.4"
+ }
+ },
+ "node_modules/@img/sharp-linux-s390x": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.34.5.tgz",
+ "integrity": "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "Apache-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
"@img/sharp-libvips-linux-s390x": "1.2.4"
@@ -791,8 +1250,8 @@
"cpu": [
"x64"
],
- "dev": true,
"license": "Apache-2.0",
+ "optional": true,
"os": [
"linux"
],
@@ -814,6 +1273,9 @@
"arm64"
],
"dev": true,
+ "libc": [
+ "musl"
+ ],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -837,6 +1299,9 @@
"x64"
],
"dev": true,
+ "libc": [
+ "musl"
+ ],
"license": "Apache-2.0",
"optional": true,
"os": [
@@ -900,36 +1365,386 @@
"ia32"
],
"dev": true,
- "license": "Apache-2.0 AND LGPL-3.0-or-later",
- "optional": true,
- "os": [
- "win32"
- ],
+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@img/sharp-win32-x64": {
+ "version": "0.34.5",
+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.34.5.tgz",
+ "integrity": "sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 AND LGPL-3.0-or-later",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/libvips"
+ }
+ },
+ "node_modules/@inquirer/ansi": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/@inquirer/ansi/-/ansi-1.0.2.tgz",
+ "integrity": "sha512-S8qNSZiYzFd0wAcyG5AXCvUHC5Sr7xpZ9wZ2py9XR88jUz8wooStVx5M6dRzczbBWjic9NP7+rY0Xi7qqK/aMQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@inquirer/checkbox": {
+ "version": "4.3.2",
+ "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-4.3.2.tgz",
+ "integrity": "sha512-VXukHf0RR1doGe6Sm4F0Em7SWYLTHSsbGfJdS9Ja2bX5/D5uwVOEjr07cncLROdBvmnvCATYEWlHqYmXv2IlQA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/ansi": "^1.0.2",
+ "@inquirer/core": "^10.3.2",
+ "@inquirer/figures": "^1.0.15",
+ "@inquirer/type": "^3.0.10",
+ "yoctocolors-cjs": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/confirm": {
+ "version": "5.1.21",
+ "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.21.tgz",
+ "integrity": "sha512-KR8edRkIsUayMXV+o3Gv+q4jlhENF9nMYUZs9PA2HzrXeHI8M5uDag70U7RJn9yyiMZSbtF5/UexBtAVtZGSbQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/core": "^10.3.2",
+ "@inquirer/type": "^3.0.10"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/core": {
+ "version": "10.3.2",
+ "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.3.2.tgz",
+ "integrity": "sha512-43RTuEbfP8MbKzedNqBrlhhNKVwoK//vUFNW3Q3vZ88BLcrs4kYpGg+B2mm5p2K/HfygoCxuKwJJiv8PbGmE0A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/ansi": "^1.0.2",
+ "@inquirer/figures": "^1.0.15",
+ "@inquirer/type": "^3.0.10",
+ "cli-width": "^4.1.0",
+ "mute-stream": "^2.0.0",
+ "signal-exit": "^4.1.0",
+ "wrap-ansi": "^6.2.0",
+ "yoctocolors-cjs": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/editor": {
+ "version": "4.2.23",
+ "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-4.2.23.tgz",
+ "integrity": "sha512-aLSROkEwirotxZ1pBaP8tugXRFCxW94gwrQLxXfrZsKkfjOYC1aRvAZuhpJOb5cu4IBTJdsCigUlf2iCOu4ZDQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/core": "^10.3.2",
+ "@inquirer/external-editor": "^1.0.3",
+ "@inquirer/type": "^3.0.10"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/expand": {
+ "version": "4.0.23",
+ "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-4.0.23.tgz",
+ "integrity": "sha512-nRzdOyFYnpeYTTR2qFwEVmIWypzdAx/sIkCMeTNTcflFOovfqUk+HcFhQQVBftAh9gmGrpFj6QcGEqrDMDOiew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/core": "^10.3.2",
+ "@inquirer/type": "^3.0.10",
+ "yoctocolors-cjs": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/external-editor": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/@inquirer/external-editor/-/external-editor-1.0.3.tgz",
+ "integrity": "sha512-RWbSrDiYmO4LbejWY7ttpxczuwQyZLBUyygsA9Nsv95hpzUWwnNTVQmAq3xuh7vNwCp07UTmE5i11XAEExx4RA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "chardet": "^2.1.1",
+ "iconv-lite": "^0.7.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/figures": {
+ "version": "1.0.15",
+ "resolved": "https://registry.npmjs.org/@inquirer/figures/-/figures-1.0.15.tgz",
+ "integrity": "sha512-t2IEY+unGHOzAaVM5Xx6DEWKeXlDDcNPeDyUpsRc6CUhBfU3VQOEl+Vssh7VNp1dR8MdUJBWhuObjXCsVpjN5g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@inquirer/input": {
+ "version": "4.3.1",
+ "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.3.1.tgz",
+ "integrity": "sha512-kN0pAM4yPrLjJ1XJBjDxyfDduXOuQHrBB8aLDMueuwUGn+vNpF7Gq7TvyVxx8u4SHlFFj4trmj+a2cbpG4Jn1g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/core": "^10.3.2",
+ "@inquirer/type": "^3.0.10"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/number": {
+ "version": "3.0.23",
+ "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-3.0.23.tgz",
+ "integrity": "sha512-5Smv0OK7K0KUzUfYUXDXQc9jrf8OHo4ktlEayFlelCjwMXz0299Y8OrI+lj7i4gCBY15UObk76q0QtxjzFcFcg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/core": "^10.3.2",
+ "@inquirer/type": "^3.0.10"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/password": {
+ "version": "4.0.23",
+ "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-4.0.23.tgz",
+ "integrity": "sha512-zREJHjhT5vJBMZX/IUbyI9zVtVfOLiTO66MrF/3GFZYZ7T4YILW5MSkEYHceSii/KtRk+4i3RE7E1CUXA2jHcA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/ansi": "^1.0.2",
+ "@inquirer/core": "^10.3.2",
+ "@inquirer/type": "^3.0.10"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/prompts": {
+ "version": "7.10.1",
+ "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-7.10.1.tgz",
+ "integrity": "sha512-Dx/y9bCQcXLI5ooQ5KyvA4FTgeo2jYj/7plWfV5Ak5wDPKQZgudKez2ixyfz7tKXzcJciTxqLeK7R9HItwiByg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/checkbox": "^4.3.2",
+ "@inquirer/confirm": "^5.1.21",
+ "@inquirer/editor": "^4.2.23",
+ "@inquirer/expand": "^4.0.23",
+ "@inquirer/input": "^4.3.1",
+ "@inquirer/number": "^3.0.23",
+ "@inquirer/password": "^4.0.23",
+ "@inquirer/rawlist": "^4.1.11",
+ "@inquirer/search": "^3.2.2",
+ "@inquirer/select": "^4.4.2"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/rawlist": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-4.1.11.tgz",
+ "integrity": "sha512-+LLQB8XGr3I5LZN/GuAHo+GpDJegQwuPARLChlMICNdwW7OwV2izlCSCxN6cqpL0sMXmbKbFcItJgdQq5EBXTw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/core": "^10.3.2",
+ "@inquirer/type": "^3.0.10",
+ "yoctocolors-cjs": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/search": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/@inquirer/search/-/search-3.2.2.tgz",
+ "integrity": "sha512-p2bvRfENXCZdWF/U2BXvnSI9h+tuA8iNqtUKb9UWbmLYCRQxd8WkvwWvYn+3NgYaNwdUkHytJMGG4MMLucI1kA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/core": "^10.3.2",
+ "@inquirer/figures": "^1.0.15",
+ "@inquirer/type": "^3.0.10",
+ "yoctocolors-cjs": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@inquirer/select": {
+ "version": "4.4.2",
+ "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-4.4.2.tgz",
+ "integrity": "sha512-l4xMuJo55MAe+N7Qr4rX90vypFwCajSakx59qe/tMaC1aEHWLyw68wF4o0A4SLAY4E0nd+Vt+EyskeDIqu1M6w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@inquirer/ansi": "^1.0.2",
+ "@inquirer/core": "^10.3.2",
+ "@inquirer/figures": "^1.0.15",
+ "@inquirer/type": "^3.0.10",
+ "yoctocolors-cjs": "^2.1.3"
+ },
"engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ "node": ">=18"
},
- "funding": {
- "url": "https://opencollective.com/libvips"
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
}
},
- "node_modules/@img/sharp-win32-x64": {
- "version": "0.34.5",
- "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.34.5.tgz",
- "integrity": "sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==",
- "cpu": [
- "x64"
- ],
+ "node_modules/@inquirer/type": {
+ "version": "3.0.10",
+ "resolved": "https://registry.npmjs.org/@inquirer/type/-/type-3.0.10.tgz",
+ "integrity": "sha512-BvziSRxfz5Ov8ch0z/n3oijRSEcEsHnhggm4xFZe93DHcUCTlutlq9Ox4SVENAfcRD22UQq7T/atg9Wr3k09eA==",
"dev": true,
- "license": "Apache-2.0 AND LGPL-3.0-or-later",
- "optional": true,
- "os": [
- "win32"
- ],
+ "license": "MIT",
"engines": {
- "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
+ "node": ">=18"
},
- "funding": {
- "url": "https://opencollective.com/libvips"
+ "peerDependencies": {
+ "@types/node": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ }
}
},
"node_modules/@jimp/bmp": {
@@ -1370,453 +2185,221 @@
}
},
"node_modules/@jimp/tiff": {
- "version": "0.22.12",
- "resolved": "https://registry.npmjs.org/@jimp/tiff/-/tiff-0.22.12.tgz",
- "integrity": "sha512-E1LtMh4RyJsoCAfAkBRVSYyZDTtLq9p9LUiiYP0vPtXyxX4BiYBUYihTLSBlCQg5nF2e4OpQg7SPrLdJ66u7jg==",
- "dev": true,
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "utif2": "^4.0.1"
- },
- "peerDependencies": {
- "@jimp/custom": ">=0.3.5"
- }
- },
- "node_modules/@jimp/types": {
- "version": "0.22.12",
- "resolved": "https://registry.npmjs.org/@jimp/types/-/types-0.22.12.tgz",
- "integrity": "sha512-wwKYzRdElE1MBXFREvCto5s699izFHNVvALUv79GXNbsOVqlwlOxlWJ8DuyOGIXoLP4JW/m30YyuTtfUJgMRMA==",
- "dev": true,
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "@jimp/bmp": "^0.22.12",
- "@jimp/gif": "^0.22.12",
- "@jimp/jpeg": "^0.22.12",
- "@jimp/png": "^0.22.12",
- "@jimp/tiff": "^0.22.12",
- "timm": "^1.6.1"
- },
- "peerDependencies": {
- "@jimp/custom": ">=0.3.5"
- }
- },
- "node_modules/@jimp/utils": {
- "version": "0.22.12",
- "resolved": "https://registry.npmjs.org/@jimp/utils/-/utils-0.22.12.tgz",
- "integrity": "sha512-yJ5cWUknGnilBq97ZXOyOS0HhsHOyAyjHwYfHxGbSyMTohgQI6sVyE8KPgDwH8HHW/nMKXk8TrSwAE71zt716Q==",
- "dev": true,
- "license": "MIT",
- "peer": true,
- "dependencies": {
- "regenerator-runtime": "^0.13.3"
- }
- },
- "node_modules/@midscene/computer": {
- "version": "1.12.6",
- "resolved": "https://registry.npmjs.org/@midscene/computer/-/computer-1.12.6.tgz",
- "integrity": "sha512-6akCXAJib1NCVmLdECa+Nrm+/gTUxh5hXP60EH4J/w+hbBiMYRlmRD9aom+WyFUEjXvPqwnvp5K/A29TBYT3wQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@computer-use/libnut": "^4.2.0",
- "@midscene/core": "1.12.6",
- "@midscene/shared": "1.12.6",
- "clipboardy": "^4.0.0",
- "screenshot-desktop": "^1.15.3"
- },
- "bin": {
- "midscene-computer": "bin/midscene-computer"
- },
- "optionalDependencies": {
- "node-mac-permissions": "2.5.0"
- }
- },
- "node_modules/@midscene/core": {
- "version": "1.12.6",
- "resolved": "https://registry.npmjs.org/@midscene/core/-/core-1.12.6.tgz",
- "integrity": "sha512-lqyCEV6ex8mBMbKUf1pJN7HrEGBIRdWArJOf+SypBDiKwXA52Y4OtrRN5ul8h1+wZQyC72DljGFhuvGpAe+3JQ==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@midscene/shared": "1.12.6",
- "@ui-tars/action-parser": "1.2.3",
- "dayjs": "^1.11.11",
- "dotenv": "^16.4.5",
- "fetch-socks": "^1.3.0",
- "js-yaml": "4.1.0",
- "jsonrepair": "3.15.0",
- "mdast-util-from-markdown": "^2.0.2",
- "mdast-util-to-markdown": "^2.1.2",
- "openai": "6.3.0",
- "semver": "7.5.2",
- "undici": "^6.0.0",
- "zod": "^3.25.1"
- },
- "engines": {
- "node": ">=18.19.0"
- }
- },
- "node_modules/@midscene/shared": {
- "version": "1.12.6",
- "resolved": "https://registry.npmjs.org/@midscene/shared/-/shared-1.12.6.tgz",
- "integrity": "sha512-csIvhYh0HWQg/Hn58MSkkerJr8EIahfYhDIlBhAOibx2uKS+ODQxkK3lmyWd8Stw9H/T+SOlQ8Btn+Zxpy9EPw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@silvia-odwyer/photon": "0.3.3",
- "debug": "4.4.0",
- "dotenv": "^16.4.5",
- "js-sha256": "0.11.0",
- "sharp": "^0.34.3",
- "uuid": "11.1.0",
- "zod": "^3.25.1"
- }
- },
- "node_modules/@napi-rs/wasm-runtime": {
- "version": "1.1.6",
- "resolved": "https://registry.npmmirror.com/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.6.tgz",
- "integrity": "sha512-ZLv/JdUfkvOy9eCnnBaGfiO+XimbjebAeO+MRQqD/B+FR1tnRN0tpKSJHRbE8sFfS6aqsXZ67TQjfwfsxULVbg==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "@tybys/wasm-util": "^0.10.3"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/Brooooooklyn"
- },
- "peerDependencies": {
- "@emnapi/core": "^1.7.1",
- "@emnapi/runtime": "^1.7.1"
- }
- },
- "node_modules/@rsbuild/core": {
- "version": "2.2.6",
- "resolved": "https://registry.npmmirror.com/@rsbuild/core/-/core-2.2.6.tgz",
- "integrity": "sha512-+BoNmacdQ2j9ysUunVUm2CTK7Aff70l4P/m29R5AWjd2vCU+X7bo6u3geMMJV0+j/JUHzoccC1ERIEhzqnD3Xg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@rspack/core": "~2.2.4",
- "@swc/helpers": "^0.5.23"
- },
- "bin": {
- "rsbuild": "bin/rsbuild.js"
- },
- "engines": {
- "node": "^20.19.0 || >=22.12.0"
- },
- "peerDependencies": {
- "core-js": ">= 3.0.0"
- },
- "peerDependenciesMeta": {
- "core-js": {
- "optional": true
- }
- }
- },
- "node_modules/@rspack/binding": {
- "version": "2.2.4",
- "resolved": "https://registry.npmmirror.com/@rspack/binding/-/binding-2.2.4.tgz",
- "integrity": "sha512-KoH5Wofyt1+egnqWF3pr8ItiYQiLgrHYLHOAn4YpzIMsGc8zDur3dCIhrhJ1uhbD3O7zkKqav4he3bo1kAmX9Q==",
- "dev": true,
- "license": "MIT",
- "optionalDependencies": {
- "@rspack/binding-darwin-arm64": "2.2.4",
- "@rspack/binding-darwin-x64": "2.2.4",
- "@rspack/binding-linux-arm64-gnu": "2.2.4",
- "@rspack/binding-linux-arm64-musl": "2.2.4",
- "@rspack/binding-linux-ppc64-gnu": "2.2.4",
- "@rspack/binding-linux-riscv64-gnu": "2.2.4",
- "@rspack/binding-linux-riscv64-musl": "2.2.4",
- "@rspack/binding-linux-s390x-gnu": "2.2.4",
- "@rspack/binding-linux-x64-gnu": "2.2.4",
- "@rspack/binding-linux-x64-musl": "2.2.4",
- "@rspack/binding-wasm32-wasi": "2.2.4",
- "@rspack/binding-win32-arm64-msvc": "2.2.4",
- "@rspack/binding-win32-ia32-msvc": "2.2.4",
- "@rspack/binding-win32-x64-msvc": "2.2.4"
- }
- },
- "node_modules/@rspack/binding-darwin-arm64": {
- "version": "2.2.4",
- "resolved": "https://registry.npmmirror.com/@rspack/binding-darwin-arm64/-/binding-darwin-arm64-2.2.4.tgz",
- "integrity": "sha512-PmwL+7nlD58tvGi2tUct2D6HzPsCeICvNpfgznzFjvrGlmPOm7pn5ahaevEf0C5QRHldf97qShekits4bzArsQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ]
- },
- "node_modules/@rspack/binding-darwin-x64": {
- "version": "2.2.4",
- "resolved": "https://registry.npmmirror.com/@rspack/binding-darwin-x64/-/binding-darwin-x64-2.2.4.tgz",
- "integrity": "sha512-eFVBlPe/32eNaC5oIQFIfMRIic/+670iK+hep4eFSuDzJPC2QBXviSDrNRIdshTFNirCquR1+idT0XI74JYBjw==",
- "cpu": [
- "x64"
- ],
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ]
- },
- "node_modules/@rspack/binding-linux-arm64-gnu": {
- "version": "2.2.4",
- "resolved": "https://registry.npmmirror.com/@rspack/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-2.2.4.tgz",
- "integrity": "sha512-/gyHP8DVezbTzey3wCknCRSKHzxZmfOAVtoNhNfQ2+9+wNaZUKjjaGuLc/IOc1CVeZ9cE30bNzJdun+/F9KNrg==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "libc": [
- "glibc"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rspack/binding-linux-arm64-musl": {
- "version": "2.2.4",
- "resolved": "https://registry.npmmirror.com/@rspack/binding-linux-arm64-musl/-/binding-linux-arm64-musl-2.2.4.tgz",
- "integrity": "sha512-eNXOvP4hKpRozCLsutbGU7R8mQ9S3OaSbgK5T/aitEAeIzFMorkcbVJopVKwEDLxrNSTfndTedefkYN+pdhsYQ==",
- "cpu": [
- "arm64"
- ],
- "dev": true,
- "libc": [
- "musl"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rspack/binding-linux-ppc64-gnu": {
- "version": "2.2.4",
- "resolved": "https://registry.npmmirror.com/@rspack/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-2.2.4.tgz",
- "integrity": "sha512-WmlhV3nXgiKiSAFc5QVSYgurbTyF+fGUgd59JWsMCPmqwgTmNyjq6mjmoa6fzKtX/4+oKFUBBn4CdO1uCKU/ww==",
- "cpu": [
- "ppc64"
- ],
- "dev": true,
- "libc": [
- "glibc"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rspack/binding-linux-riscv64-gnu": {
- "version": "2.2.4",
- "resolved": "https://registry.npmmirror.com/@rspack/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-2.2.4.tgz",
- "integrity": "sha512-EGqzydSCvB1o8aVk0H+HM1npAk63ZRR8jSTqzY0GQ4nz+30LHZ/Ah1Eba91OsUAgfKwk3ffP5a7EoizH24m2Rg==",
- "cpu": [
- "riscv64"
- ],
- "dev": true,
- "libc": [
- "glibc"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rspack/binding-linux-riscv64-musl": {
- "version": "2.2.4",
- "resolved": "https://registry.npmmirror.com/@rspack/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-2.2.4.tgz",
- "integrity": "sha512-5A5vzbvNBvuAQ4ZGEAdVl8gcFowgqCCVz3fCh12Jq3WHynl3J4JHAMnVQMs7A/KmaBhwKYDtO4FUvWh5V/BNKA==",
- "cpu": [
- "riscv64"
- ],
- "dev": true,
- "libc": [
- "musl"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rspack/binding-linux-s390x-gnu": {
- "version": "2.2.4",
- "resolved": "https://registry.npmmirror.com/@rspack/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-2.2.4.tgz",
- "integrity": "sha512-AWGTTx5ZkMe/hHTjpbIdxJ2xzMrSaL+01zpzV2LpGhheiXeDmwId9yYEEG8vwtzzVmz8lS5VBRIdy3Kx/k4m8A==",
- "cpu": [
- "s390x"
- ],
- "dev": true,
- "libc": [
- "glibc"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
- },
- "node_modules/@rspack/binding-linux-x64-gnu": {
- "version": "2.2.4",
- "resolved": "https://registry.npmmirror.com/@rspack/binding-linux-x64-gnu/-/binding-linux-x64-gnu-2.2.4.tgz",
- "integrity": "sha512-wzVC7AkyGD0rAdV41pKxwokvdAEY47HazjdUd3Pq2MT/rHNkhgsbCOVbrl4Ts2vQqiLrFfnnNZs383492oIrQw==",
- "cpu": [
- "x64"
- ],
+ "version": "0.22.12",
+ "resolved": "https://registry.npmjs.org/@jimp/tiff/-/tiff-0.22.12.tgz",
+ "integrity": "sha512-E1LtMh4RyJsoCAfAkBRVSYyZDTtLq9p9LUiiYP0vPtXyxX4BiYBUYihTLSBlCQg5nF2e4OpQg7SPrLdJ66u7jg==",
"dev": true,
- "libc": [
- "glibc"
- ],
"license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
+ "peer": true,
+ "dependencies": {
+ "utif2": "^4.0.1"
+ },
+ "peerDependencies": {
+ "@jimp/custom": ">=0.3.5"
+ }
},
- "node_modules/@rspack/binding-linux-x64-musl": {
- "version": "2.2.4",
- "resolved": "https://registry.npmmirror.com/@rspack/binding-linux-x64-musl/-/binding-linux-x64-musl-2.2.4.tgz",
- "integrity": "sha512-Gpxo27eJ+r53ebWdm8FIg6jtlEOr4T5Yit7FgF8Ib9U78Et9qGcbnvVQONHjz8gUe2hvwg9QQ1EJZechSpVB8A==",
- "cpu": [
- "x64"
- ],
+ "node_modules/@jimp/types": {
+ "version": "0.22.12",
+ "resolved": "https://registry.npmjs.org/@jimp/types/-/types-0.22.12.tgz",
+ "integrity": "sha512-wwKYzRdElE1MBXFREvCto5s699izFHNVvALUv79GXNbsOVqlwlOxlWJ8DuyOGIXoLP4JW/m30YyuTtfUJgMRMA==",
"dev": true,
- "libc": [
- "musl"
- ],
"license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ]
+ "peer": true,
+ "dependencies": {
+ "@jimp/bmp": "^0.22.12",
+ "@jimp/gif": "^0.22.12",
+ "@jimp/jpeg": "^0.22.12",
+ "@jimp/png": "^0.22.12",
+ "@jimp/tiff": "^0.22.12",
+ "timm": "^1.6.1"
+ },
+ "peerDependencies": {
+ "@jimp/custom": ">=0.3.5"
+ }
},
- "node_modules/@rspack/binding-wasm32-wasi": {
- "version": "2.2.4",
- "resolved": "https://registry.npmmirror.com/@rspack/binding-wasm32-wasi/-/binding-wasm32-wasi-2.2.4.tgz",
- "integrity": "sha512-Ak0PYNbyQd/0d7xsuCCBvc/V9+S8+NoHHv5dzlHepa6udSF7zKDxv9MxRMdhIIBrgn+8GMHQb3ohwW1XjzmONg==",
- "cpu": [
- "wasm32"
- ],
+ "node_modules/@jimp/utils": {
+ "version": "0.22.12",
+ "resolved": "https://registry.npmjs.org/@jimp/utils/-/utils-0.22.12.tgz",
+ "integrity": "sha512-yJ5cWUknGnilBq97ZXOyOS0HhsHOyAyjHwYfHxGbSyMTohgQI6sVyE8KPgDwH8HHW/nMKXk8TrSwAE71zt716Q==",
"dev": true,
"license": "MIT",
- "optional": true,
+ "peer": true,
"dependencies": {
- "@emnapi/core": "1.11.3",
- "@emnapi/runtime": "1.11.3",
- "@napi-rs/wasm-runtime": "1.1.6"
+ "regenerator-runtime": "^0.13.3"
}
},
- "node_modules/@rspack/binding-win32-arm64-msvc": {
- "version": "2.2.4",
- "resolved": "https://registry.npmmirror.com/@rspack/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-2.2.4.tgz",
- "integrity": "sha512-OVynh1BYpAKSdvopHR4P/Qy1y17YgF3qLGcRYDGTvwAYOX7EyHS/7YK8BX12T2dDZV2UhEa2t98fNncX5H/O3Q==",
- "cpu": [
- "arm64"
- ],
+ "node_modules/@midscene/computer": {
+ "version": "1.12.8",
+ "resolved": "https://registry.npmjs.org/@midscene/computer/-/computer-1.12.8.tgz",
+ "integrity": "sha512-b0haZC1/XasS5FLbdEmln8dDbZPqhna1DjCoxvwhIj8eoISDfuKhAwAvdXaSPpvU8NHgV7cpywo8UiaTXkd4xQ==",
"dev": true,
"license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ]
+ "dependencies": {
+ "@computer-use/libnut": "^4.2.0",
+ "@midscene/core": "1.12.8",
+ "@midscene/shared": "1.12.8",
+ "clipboardy": "^4.0.0",
+ "screenshot-desktop": "^1.15.3"
+ },
+ "bin": {
+ "midscene-computer": "bin/midscene-computer"
+ },
+ "optionalDependencies": {
+ "node-mac-permissions": "2.5.0"
+ }
},
- "node_modules/@rspack/binding-win32-ia32-msvc": {
- "version": "2.2.4",
- "resolved": "https://registry.npmmirror.com/@rspack/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-2.2.4.tgz",
- "integrity": "sha512-Q3yuEY/ayWjF0dO6Guj1cPH97jyaazNXRUzZz5/qz1BuuCPUaV7/LMUz1HHKOqxCw13dPFWoYRMFC92ntH/jKg==",
- "cpu": [
- "ia32"
- ],
+ "node_modules/@midscene/core": {
+ "version": "1.12.8",
+ "resolved": "https://registry.npmjs.org/@midscene/core/-/core-1.12.8.tgz",
+ "integrity": "sha512-dHiiJUPIgvVkuLFYDsn12+W0DkOGymG6YGm22RHFVKMWXjGd40zURWhgCOb3hxVEHzlVAWbhhfs32tgCrJp0zQ==",
"dev": true,
"license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ]
+ "dependencies": {
+ "@midscene/shared": "1.12.8",
+ "@ui-tars/action-parser": "1.2.3",
+ "dayjs": "^1.11.11",
+ "dotenv": "^16.4.5",
+ "fetch-socks": "^1.3.0",
+ "js-yaml": "4.1.0",
+ "jsonrepair": "3.15.0",
+ "mdast-util-from-markdown": "^2.0.2",
+ "mdast-util-to-markdown": "^2.1.2",
+ "openai": "6.3.0",
+ "semver": "7.5.2",
+ "undici": "^6.0.0",
+ "zod": "^3.25.1"
+ },
+ "engines": {
+ "node": ">=18.19.0"
+ }
},
- "node_modules/@rspack/binding-win32-x64-msvc": {
- "version": "2.2.4",
- "resolved": "https://registry.npmmirror.com/@rspack/binding-win32-x64-msvc/-/binding-win32-x64-msvc-2.2.4.tgz",
- "integrity": "sha512-syTl1zbNQPj0HuiPEqSHT/wfLGxDCjrG17UaK1sIauZjDKisIyzN3DYE+WYuRy6wSNQ02jhPFmsvdxgntfQKFw==",
- "cpu": [
- "x64"
- ],
+ "node_modules/@midscene/shared": {
+ "version": "1.12.8",
+ "resolved": "https://registry.npmjs.org/@midscene/shared/-/shared-1.12.8.tgz",
+ "integrity": "sha512-uCfLFik0/lMZlK02kALz3+8zsttlXZ8Ptw4XIHQ1e75Dt3Y4oyFw9jA0O/jkx3ceJLAdxK8Ja1lsOOOjuFZ3jA==",
"dev": true,
"license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ]
+ "dependencies": {
+ "@silvia-odwyer/photon": "0.3.3",
+ "debug": "4.4.0",
+ "dotenv": "^16.4.5",
+ "js-sha256": "0.11.0",
+ "sharp": "^0.34.3",
+ "uuid": "11.1.0",
+ "zod": "^3.25.1"
+ }
},
- "node_modules/@rspack/core": {
- "version": "2.2.4",
- "resolved": "https://registry.npmmirror.com/@rspack/core/-/core-2.2.4.tgz",
- "integrity": "sha512-p8/w2i3viGQDVaqbHZtKpBwQNG7rY+Bf8iwu3i+d4KHwC1+VMLc4fBD30qU+cAHuUtsdx15sicvTVz3CniYOlg==",
+ "node_modules/@midscene/test": {
+ "version": "1.12.8",
+ "resolved": "https://registry.npmjs.org/@midscene/test/-/test-1.12.8.tgz",
+ "integrity": "sha512-yQzIZax8csm2rHfIOfVdEcPQ3JBeQW4I5RvfiIEC1x9//K4/RFaGe58GZk9OXK0jfv+YgcZYN7FPCPgPNOqZLA==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@rspack/binding": "2.2.4"
+ "@inquirer/prompts": "^7.8.6",
+ "@midscene/core": "1.12.8",
+ "@midscene/shared": "1.12.8",
+ "execa": "9.3.0",
+ "js-yaml": "4.1.0",
+ "tinyglobby": "0.2.15",
+ "tsx": "^4.19.2",
+ "yargs": "17.7.2",
+ "zod": "^3.25.1"
+ },
+ "bin": {
+ "midscene-test": "bin/midscene-test"
},
"engines": {
- "node": "^20.19.0 || >=22.12.0"
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
+ }
+ },
+ "node_modules/@midscene/test/node_modules/execa": {
+ "version": "9.3.0",
+ "resolved": "https://registry.npmjs.org/execa/-/execa-9.3.0.tgz",
+ "integrity": "sha512-l6JFbqnHEadBoVAVpN5dl2yCyfX28WoBAGaoQcNmLLSedOxTxcn2Qa83s8I/PA5i56vWru2OHOtrwF7Om2vqlg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@sindresorhus/merge-streams": "^4.0.0",
+ "cross-spawn": "^7.0.3",
+ "figures": "^6.1.0",
+ "get-stream": "^9.0.0",
+ "human-signals": "^7.0.0",
+ "is-plain-obj": "^4.1.0",
+ "is-stream": "^4.0.1",
+ "npm-run-path": "^5.2.0",
+ "pretty-ms": "^9.0.0",
+ "signal-exit": "^4.1.0",
+ "strip-final-newline": "^4.0.0",
+ "yoctocolors": "^2.0.0"
},
- "peerDependencies": {
- "@module-federation/runtime-tools": "^0.24.1 || ^2.0.0",
- "@swc/helpers": "^0.5.23"
+ "engines": {
+ "node": "^18.19.0 || >=20.5.0"
},
- "peerDependenciesMeta": {
- "@module-federation/runtime-tools": {
- "optional": true
- },
- "@swc/helpers": {
- "optional": true
- }
+ "funding": {
+ "url": "https://github.com/sindresorhus/execa?sponsor=1"
}
},
- "node_modules/@rstest/core": {
- "version": "0.11.12",
- "resolved": "https://registry.npmmirror.com/@rstest/core/-/core-0.11.12.tgz",
- "integrity": "sha512-dklEYLtL1eip/11K+o3xEchEs2nCGua2u2W8Pycf6PS8TE0PDJH2Bn9y/txuQI4YVHyIQ88PISWtS6fVnxSyXQ==",
+ "node_modules/@midscene/test/node_modules/get-stream": {
+ "version": "9.0.1",
+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-9.0.1.tgz",
+ "integrity": "sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@rsbuild/core": "~2.2.2",
- "@types/chai": "^5.2.3"
+ "@sec-ant/readable-stream": "^0.4.1",
+ "is-stream": "^4.0.1"
},
- "bin": {
- "rstest": "bin/rstest.js"
+ "engines": {
+ "node": ">=18"
},
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@midscene/test/node_modules/human-signals": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-7.0.0.tgz",
+ "integrity": "sha512-74kytxOUSvNbjrT9KisAbaTZ/eJwD/LrbM/kh5j0IhPuJzwuA19dWvniFGwBzN9rVjg+O/e+F310PjObDXS+9Q==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@midscene/test/node_modules/is-stream": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-4.0.1.tgz",
+ "integrity": "sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==",
+ "dev": true,
+ "license": "MIT",
"engines": {
- "node": "^20.19.0 || >=22.12.0"
+ "node": ">=18"
},
- "peerDependencies": {
- "happy-dom": "^20.8.3",
- "jsdom": ">=15.0.0"
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@midscene/test/node_modules/strip-final-newline": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-4.0.0.tgz",
+ "integrity": "sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
},
- "peerDependenciesMeta": {
- "happy-dom": {
- "optional": true
- },
- "jsdom": {
- "optional": true
- }
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/@sec-ant/readable-stream": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/@sec-ant/readable-stream/-/readable-stream-0.4.1.tgz",
+ "integrity": "sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/@silvia-odwyer/photon": {
"version": "0.3.3",
"resolved": "https://registry.npmjs.org/@silvia-odwyer/photon/-/photon-0.3.3.tgz",
@@ -1824,14 +2407,17 @@
"dev": true,
"license": "Apache-2.0"
},
- "node_modules/@swc/helpers": {
- "version": "0.5.23",
- "resolved": "https://registry.npmmirror.com/@swc/helpers/-/helpers-0.5.23.tgz",
- "integrity": "sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==",
+ "node_modules/@sindresorhus/merge-streams": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-4.0.0.tgz",
+ "integrity": "sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==",
"dev": true,
- "license": "Apache-2.0",
- "dependencies": {
- "tslib": "^2.8.0"
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/@tokenizer/token": {
@@ -1842,28 +2428,6 @@
"license": "MIT",
"peer": true
},
- "node_modules/@tybys/wasm-util": {
- "version": "0.10.4",
- "resolved": "https://registry.npmmirror.com/@tybys/wasm-util/-/wasm-util-0.10.4.tgz",
- "integrity": "sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "tslib": "^2.4.0"
- }
- },
- "node_modules/@types/chai": {
- "version": "5.2.3",
- "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz",
- "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@types/deep-eql": "*",
- "assertion-error": "^2.0.1"
- }
- },
"node_modules/@types/debug": {
"version": "4.1.13",
"resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz",
@@ -1874,13 +2438,6 @@
"@types/ms": "*"
}
},
- "node_modules/@types/deep-eql": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz",
- "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==",
- "dev": true,
- "license": "MIT"
- },
"node_modules/@types/mdast": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz",
@@ -1898,6 +2455,16 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/@types/node": {
+ "version": "22.20.3",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.20.3.tgz",
+ "integrity": "sha512-DZmzkmwHzXrLPAXPyKNDzlIwMMUZCVacoD25ywdy5YTKGbOx/2ld+Q38Im2zJ0vBuZP5Prd3VZutKZyXwkOS8A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": "~6.21.0"
+ }
+ },
"node_modules/@types/unist": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz",
@@ -1937,6 +2504,32 @@
"node": ">=6.5"
}
},
+ "node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
"node_modules/any-base": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/any-base/-/any-base-1.1.0.tgz",
@@ -1974,16 +2567,6 @@
"dev": true,
"license": "Python-2.0"
},
- "node_modules/assertion-error": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",
- "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",
- "dev": true,
- "license": "MIT",
- "engines": {
- "node": ">=12"
- }
- },
"node_modules/balanced-match": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
@@ -2101,24 +2684,94 @@
"url": "https://github.com/sponsors/wooorm"
}
},
- "node_modules/clipboardy": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/clipboardy/-/clipboardy-4.0.0.tgz",
- "integrity": "sha512-5mOlNS0mhX0707P2I0aZ2V/cmHUEO/fL7VFLqszkhUsxt7RwnmrInf/eEQKlf5GzvYeHIjT+Ov1HRfNmymlG0w==",
+ "node_modules/chardet": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/chardet/-/chardet-2.2.0.tgz",
+ "integrity": "sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/cli-width": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-4.1.0.tgz",
+ "integrity": "sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">= 12"
+ }
+ },
+ "node_modules/clipboardy": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/clipboardy/-/clipboardy-4.0.0.tgz",
+ "integrity": "sha512-5mOlNS0mhX0707P2I0aZ2V/cmHUEO/fL7VFLqszkhUsxt7RwnmrInf/eEQKlf5GzvYeHIjT+Ov1HRfNmymlG0w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "execa": "^8.0.1",
+ "is-wsl": "^3.1.0",
+ "is64bit": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/cliui": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.1",
+ "wrap-ansi": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/cliui/node_modules/wrap-ansi": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
"dev": true,
"license": "MIT",
"dependencies": {
- "execa": "^8.0.1",
- "is-wsl": "^3.1.0",
- "is64bit": "^2.0.0"
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
},
"engines": {
- "node": ">=18"
+ "node": ">=10"
},
"funding": {
- "url": "https://github.com/sponsors/sindresorhus"
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
}
},
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/concat-map": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
@@ -2234,6 +2887,13 @@
"url": "https://dotenvx.com"
}
},
+ "node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/end-of-stream": {
"version": "1.4.5",
"resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz",
@@ -2245,6 +2905,58 @@
"once": "^1.4.0"
}
},
+ "node_modules/esbuild": {
+ "version": "0.28.2",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz",
+ "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.28.2",
+ "@esbuild/android-arm": "0.28.2",
+ "@esbuild/android-arm64": "0.28.2",
+ "@esbuild/android-x64": "0.28.2",
+ "@esbuild/darwin-arm64": "0.28.2",
+ "@esbuild/darwin-x64": "0.28.2",
+ "@esbuild/freebsd-arm64": "0.28.2",
+ "@esbuild/freebsd-x64": "0.28.2",
+ "@esbuild/linux-arm": "0.28.2",
+ "@esbuild/linux-arm64": "0.28.2",
+ "@esbuild/linux-ia32": "0.28.2",
+ "@esbuild/linux-loong64": "0.28.2",
+ "@esbuild/linux-mips64el": "0.28.2",
+ "@esbuild/linux-ppc64": "0.28.2",
+ "@esbuild/linux-riscv64": "0.28.2",
+ "@esbuild/linux-s390x": "0.28.2",
+ "@esbuild/linux-x64": "0.28.2",
+ "@esbuild/netbsd-arm64": "0.28.2",
+ "@esbuild/netbsd-x64": "0.28.2",
+ "@esbuild/openbsd-arm64": "0.28.2",
+ "@esbuild/openbsd-x64": "0.28.2",
+ "@esbuild/openharmony-arm64": "0.28.2",
+ "@esbuild/sunos-x64": "0.28.2",
+ "@esbuild/win32-arm64": "0.28.2",
+ "@esbuild/win32-ia32": "0.28.2",
+ "@esbuild/win32-x64": "0.28.2"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
"node_modules/event-target-shim": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz",
@@ -2298,6 +3010,24 @@
"dev": true,
"peer": true
},
+ "node_modules/fdir": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "peerDependencies": {
+ "picomatch": "^3 || ^4"
+ },
+ "peerDependenciesMeta": {
+ "picomatch": {
+ "optional": true
+ }
+ }
+ },
"node_modules/fetch-socks": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/fetch-socks/-/fetch-socks-1.3.3.tgz",
@@ -2319,6 +3049,22 @@
"node": ">=22.19.0"
}
},
+ "node_modules/figures": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/figures/-/figures-6.1.0.tgz",
+ "integrity": "sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-unicode-supported": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/file-type": {
"version": "16.5.4",
"resolved": "https://registry.npmjs.org/file-type/-/file-type-16.5.4.tgz",
@@ -2374,6 +3120,31 @@
"dev": true,
"license": "ISC"
},
+ "node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/get-caller-file": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": "6.* || 8.* || >= 10.*"
+ }
+ },
"node_modules/get-stream": {
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz",
@@ -2443,6 +3214,23 @@
"node": ">=16.17.0"
}
},
+ "node_modules/iconv-lite": {
+ "version": "0.7.3",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz",
+ "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
"node_modules/ieee754": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
@@ -2504,9 +3292,9 @@
"license": "ISC"
},
"node_modules/ip-address": {
- "version": "10.7.0",
- "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.0.tgz",
- "integrity": "sha512-BGFsyJd5mpXp3rK6jIdADLNgpJUK1jnjzvYF8lK+VyDab9JAmqN0YOKDdP17HlgKb2+ehPgDc8EtnRLbGCAMhA==",
+ "version": "10.7.2",
+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.2.tgz",
+ "integrity": "sha512-7H/2gFSIitxc0hG3nOI1glS8QLo/EHBFFLk8vEUjXY/xu0AdL8jZ9U1IzO2PUm0d2D/ofQcAifb0g6OBkt8U7w==",
"dev": true,
"license": "MIT",
"engines": {
@@ -2529,6 +3317,16 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/is-function": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/is-function/-/is-function-1.0.2.tgz",
@@ -2556,6 +3354,19 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/is-plain-obj": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz",
+ "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/is-stream": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz",
@@ -2569,6 +3380,19 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/is-unicode-supported": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-2.1.0.tgz",
+ "integrity": "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/is-wsl": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.1.tgz",
@@ -3348,6 +4172,16 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/mute-stream": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-2.0.0.tgz",
+ "integrity": "sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": "^18.17.0 || >=20.5.0"
+ }
+ },
"node_modules/nice-try": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz",
@@ -3558,6 +4392,19 @@
"license": "MIT",
"peer": true
},
+ "node_modules/parse-ms": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-4.0.0.tgz",
+ "integrity": "sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/path-is-absolute": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
@@ -3608,6 +4455,19 @@
"node": ">= 8"
}
},
+ "node_modules/picomatch": {
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",
+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
"node_modules/pixelmatch": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/pixelmatch/-/pixelmatch-4.0.2.tgz",
@@ -3644,6 +4504,22 @@
"node": ">=12.13.0"
}
},
+ "node_modules/pretty-ms": {
+ "version": "9.3.0",
+ "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-9.3.0.tgz",
+ "integrity": "sha512-gjVS5hOP+M3wMm5nmNOucbIrqudzs9v/57bWRHQWLYklXqoXKrVfYW2W9+glfGsqtPgpiz5WwyEEB+ksXIx3gQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "parse-ms": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/process": {
"version": "0.11.10",
"resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
@@ -3737,6 +4613,16 @@
"license": "MIT",
"peer": true
},
+ "node_modules/require-directory": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/rimraf": {
"version": "2.6.3",
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz",
@@ -3773,6 +4659,13 @@
"license": "MIT",
"peer": true
},
+ "node_modules/safer-buffer": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/sax": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/sax/-/sax-1.6.1.tgz",
@@ -3947,6 +4840,34 @@
"safe-buffer": "~5.2.0"
}
},
+ "node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/strip-eof": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz",
@@ -4033,6 +4954,23 @@
"license": "MIT",
"peer": true
},
+ "node_modules/tinyglobby": {
+ "version": "0.2.15",
+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",
+ "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fdir": "^6.5.0",
+ "picomatch": "^4.0.3"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/SuperchupuDev"
+ }
+ },
"node_modules/token-types": {
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/token-types/-/token-types-4.2.1.tgz",
@@ -4065,7 +5003,41 @@
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
"dev": true,
- "license": "0BSD"
+ "license": "0BSD",
+ "optional": true
+ },
+ "node_modules/tsx": {
+ "version": "4.23.13",
+ "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.23.13.tgz",
+ "integrity": "sha512-BL5MGkRln6aDYhb0xbQlEAGw743BaZYWdbWtdJOBriYJboKgUUYCadFp2/FpBBZquBC/ezNBn7wMMPx7FDZUDw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "esbuild": "~0.28.0"
+ },
+ "bin": {
+ "tsx": "dist/cli.mjs"
+ },
+ "engines": {
+ "node": ">=18.0.0"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.3"
+ }
+ },
+ "node_modules/typescript": {
+ "version": "5.9.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=14.17"
+ }
},
"node_modules/undici": {
"version": "6.28.1",
@@ -4077,6 +5049,13 @@
"node": ">=18.17"
}
},
+ "node_modules/undici-types": {
+ "version": "6.21.0",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/unist-util-is": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz",
@@ -4205,6 +5184,21 @@
"node": ">= 8"
}
},
+ "node_modules/wrap-ansi": {
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
+ "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
"node_modules/wrappy": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
@@ -4271,6 +5265,16 @@
"node": ">=0.4"
}
},
+ "node_modules/y18n": {
+ "version": "5.0.8",
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=10"
+ }
+ },
"node_modules/yallist": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
@@ -4278,6 +5282,61 @@
"dev": true,
"license": "ISC"
},
+ "node_modules/yargs": {
+ "version": "17.7.2",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
+ "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cliui": "^8.0.1",
+ "escalade": "^3.1.1",
+ "get-caller-file": "^2.0.5",
+ "require-directory": "^2.1.1",
+ "string-width": "^4.2.3",
+ "y18n": "^5.0.5",
+ "yargs-parser": "^21.1.1"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/yargs-parser": {
+ "version": "21.1.1",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/yoctocolors": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/yoctocolors/-/yoctocolors-2.2.0.tgz",
+ "integrity": "sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/yoctocolors-cjs": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/yoctocolors-cjs/-/yoctocolors-cjs-2.1.3.tgz",
+ "integrity": "sha512-U/PBtDf35ff0D8X8D0jfdzHYEPFxAI7jJlxZXwCSez5M3190m+QobIfh+sWDWSHMCWWJN2AWamkegn6vr6YBTw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/zod": {
"version": "3.25.76",
"resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
diff --git a/tests/midscene/package.json b/tests/midscene/package.json
index 267840a..7e27dd5 100644
--- a/tests/midscene/package.json
+++ b/tests/midscene/package.json
@@ -4,12 +4,18 @@
"version": "1.0.0",
"type": "module",
"scripts": {
- "test": "rstest"
+ "test": "midscene-test",
+ "nodes": "midscene-test nodes",
+ "typecheck": "tsc --noEmit"
},
- "devDependencies": {
+ "optionalDependencies": {
"@img/sharp-libvips-linux-x64": "1.2.4",
- "@img/sharp-linux-x64": "0.34.5",
- "@midscene/computer": "1.12.6",
- "@rstest/core": "0.11.12"
+ "@img/sharp-linux-x64": "0.34.5"
+ },
+ "devDependencies": {
+ "@midscene/computer": "1.12.8",
+ "@midscene/test": "1.12.8",
+ "@types/node": "^22.0.0",
+ "typescript": "^5.8.3"
}
}
diff --git a/tests/midscene/rstest.config.ts b/tests/midscene/rstest.config.ts
deleted file mode 100644
index e3bde39..0000000
--- a/tests/midscene/rstest.config.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import { defineConfig } from '@rstest/core';
-
-export default defineConfig({
- include: ['e2e/**/*.test.ts'],
- testTimeout: 8 * 60 * 1000,
- hookTimeout: 2 * 60 * 1000,
- pool: {
- maxWorkers: 1,
- },
-});
diff --git a/tests/midscene/run-omarchy-midscene.sh b/tests/midscene/run-omarchy-midscene.sh
index 1b68a35..13d6595 100755
--- a/tests/midscene/run-omarchy-midscene.sh
+++ b/tests/midscene/run-omarchy-midscene.sh
@@ -13,6 +13,7 @@ readonly SSH_PORT=2222
readonly PLUGIN_DIR="/home/omarchy/.config/omarchy/plugins/md.lifeos.doubao-say"
readonly SHIM_DIR="$(mktemp -d)"
readonly PLUGIN_ARCHIVE="$(mktemp /tmp/doubao-say-omarchy-plugin-XXXXXX.tar)"
+export NODE_OPTIONS="${NODE_OPTIONS:-} --require=$ROOT_DIR/tests/midscene/node_modules/@computer-use/libnut/dist/import_libnut.js"
VM_PID=""
@@ -182,8 +183,8 @@ ATTEMPT_LOG=""
for _test_attempt in 1 2 3; do
start_guest_fixture
ATTEMPT_LOG="/tmp/omarchy-midscene-attempt-${_test_attempt}.log"
- if OMARCHY_E2E=true npm --prefix tests/midscene test -- \
- e2e/omarchy-onboarding.test.ts 2>&1 | tee "$ATTEMPT_LOG"; then
+ if npm --prefix tests/midscene test -- \
+ --project omarchy-onboarding 2>&1 | tee "$ATTEMPT_LOG"; then
MIDSCENE_PASSED=true
break
fi
@@ -227,8 +228,8 @@ done
MENU_PASSED=false
for _test_attempt in 1 2 3; do
ATTEMPT_LOG="/tmp/omarchy-menu-midscene-attempt-${_test_attempt}.log"
- if OMARCHY_E2E=true OMARCHY_SSH_KEY="$SSH_KEY" npm --prefix tests/midscene test -- \
- e2e/omarchy-system-menu.test.ts 2>&1 | tee "$ATTEMPT_LOG"; then
+ if OMARCHY_SSH_KEY="$SSH_KEY" npm --prefix tests/midscene test -- \
+ --project omarchy-shell 2>&1 | tee "$ATTEMPT_LOG"; then
MENU_PASSED=true
break
fi
diff --git a/tests/midscene/tsconfig.json b/tests/midscene/tsconfig.json
new file mode 100644
index 0000000..fb75ab7
--- /dev/null
+++ b/tests/midscene/tsconfig.json
@@ -0,0 +1,12 @@
+{
+ "compilerOptions": {
+ "target": "ES2022",
+ "module": "ESNext",
+ "moduleResolution": "Bundler",
+ "strict": true,
+ "noEmit": true,
+ "skipLibCheck": true,
+ "types": ["node"]
+ },
+ "include": ["midscene.config.ts"]
+}
diff --git a/tests/test_pages_report_history.mjs b/tests/test_pages_report_history.mjs
index 084066e..9a88021 100644
--- a/tests/test_pages_report_history.mjs
+++ b/tests/test_pages_report_history.mjs
@@ -43,7 +43,8 @@ const shellFixtureHtml = `<!doctype html><html><body>${shellPrompts
async function fixtureDirectory(root) {
const reportDirectory = path.join(root, 'artifact', 'report');
await mkdir(reportDirectory, { recursive: true });
- await writeFile(path.join(reportDirectory, 'midscene.html'), fixtureHtml);
+ await writeFile(path.join(reportDirectory, 'test-run-ubuntu.html'), fixtureHtml);
+ await writeFile(path.join(reportDirectory, 'agent-detail.html'), '<html>intermediate Agent report</html>');
return path.dirname(reportDirectory);
}
@@ -106,11 +107,11 @@ test('simulates a first deployment when Pages returns 404', async (context) => {
);
});
-test('builds a visual showcase from onboarding and shell reports', async (context) => {
+test('publishes the shell test-run report directly with a CI entrance image', async (context) => {
const root = await mkdtemp(path.join(os.tmpdir(), 'pages-omarchy-'));
const reportDirectory = await fixtureDirectory(root);
await writeFile(
- path.join(reportDirectory, 'report', 'shell.html'),
+ path.join(reportDirectory, 'report', 'test-run-shell.html'),
shellFixtureHtml,
);
const siteDirectory = path.join(root, 'site');
@@ -123,21 +124,19 @@ test('builds a visual showcase from onboarding and shell reports', async (contex
options(reportDirectory, siteDirectory, server.url),
);
- assert.equal(manifest.reports[0].testCount, 3);
- assert.equal(manifest.reports[0].files.length, 5);
- const showcase = await readFile(
+ assert.equal(manifest.reports[0].testCount, 2);
+ assert.equal(manifest.reports[0].files.length, 4);
+ const publishedReport = await readFile(
path.join(siteDirectory, 'reports', '200', 'index.html'),
'utf8',
);
- assert.match(showcase, /3 \/ 3/);
- assert.match(showcase, /<iframe src="shell-report.html"/);
- assert.match(showcase, /menu.jpg/);
+ assert.equal(publishedReport, shellFixtureHtml);
assert.equal(
await readFile(
- path.join(siteDirectory, 'reports', '200', 'shell-report.html'),
+ path.join(siteDirectory, 'reports', '200', 'onboarding-report.html'),
'utf8',
),
- shellFixtureHtml,
+ fixtureHtml,
);
assert.equal(
(await readFile(path.join(siteDirectory, 'reports', '200', 'bar.jpg')))