feat: initial public release (MAESTRO)

This commit is contained in:
oss-sync
2026-06-03 05:08:00 +00:00
commit f5c7666f6b
823 changed files with 184150 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
---
description: E2E click+read fixture for the Playwright runtime
params:
- name: title
type: string
---
/**
* Loads a data: URL (no network), clicks a button, and returns the textContent
* the click revealed. Exercises the full chromium spin-up + main({ context })
* dispatch path without needing a real HTTP server.
*/
async function main({ context, params }) {
const html = `data:text/html,${encodeURIComponent(`
<!doctype html>
<html><body>
<h1 id="title">${params.title}</h1>
<button id="reveal" onclick="document.getElementById('out').textContent='revealed:' + document.getElementById('title').textContent">Reveal</button>
<span id="out"></span>
</body></html>
`)}`;
const page = await context.newPage();
try {
await page.goto(html);
await page.locator('#reveal').click();
return await page.locator('#out').textContent();
} finally {
await page.close();
}
}
module.exports = main;
+14
View File
@@ -0,0 +1,14 @@
/**
* Browser-macro without frontmatter. Verifies the playwright runtime doesn't
* insist on session_profile_id when the script doesn't ask for one.
*/
async function main({ context }) {
const page = await context.newPage();
try {
await page.goto('data:text/html,<title>hello</title><body>no-session</body>');
return await page.title();
} finally {
await page.close();
}
}
module.exports = main;