@aarwitz/tapp 0.20.1 → 0.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +2 -2
- package/browser/app.js +10 -0
- package/browser/index.html +1 -1
- package/mcp-server/src/web-flow.js +8 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tapp",
|
|
3
3
|
"description": "Give Claude hands and eyes on iOS, Android, and web apps, with exploration, replayable flows, evidence, and deterministic CI gates.",
|
|
4
|
-
"version": "0.20.
|
|
4
|
+
"version": "0.20.2",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Aaron Horowitz",
|
|
7
7
|
"url": "https://github.com/aarwitz"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"command": "npx",
|
|
25
25
|
"args": [
|
|
26
26
|
"-y",
|
|
27
|
-
"@aarwitz/tapp@0.20.
|
|
27
|
+
"@aarwitz/tapp@0.20.2",
|
|
28
28
|
"mcp"
|
|
29
29
|
],
|
|
30
30
|
"cwd": "${CLAUDE_PROJECT_DIR}"
|
package/browser/app.js
CHANGED
|
@@ -224,6 +224,16 @@ function renderLiveSession() {
|
|
|
224
224
|
const hasFrame = !!$("#live-frame-image").getAttribute("src");
|
|
225
225
|
$("#live-frame-loading").classList.toggle("hidden", hasFrame || !frameSource());
|
|
226
226
|
$("#device-placeholder").classList.toggle("hidden", hasFrame);
|
|
227
|
+
// While a run is starting there is genuinely nothing to show yet — a browser is launching —
|
|
228
|
+
// but telling someone to "run a release check" while their run is already going reads as
|
|
229
|
+
// though nothing happened. Say what is actually true.
|
|
230
|
+
const waiting = !!state.activeJob && !hasFrame;
|
|
231
|
+
const title = $("#device-placeholder-title");
|
|
232
|
+
const detail = $("#device-placeholder-detail");
|
|
233
|
+
if (title) title.textContent = waiting ? "Opening the browser…" : "No live feed yet";
|
|
234
|
+
if (detail) detail.textContent = waiting
|
|
235
|
+
? "The first screen appears here as soon as the page is rendered."
|
|
236
|
+
: "Run a release check or open a live session to see the real application here.";
|
|
227
237
|
if (!state.activeJob) $("#live-screen-title").textContent = hasFrame ? $("#live-screen-title").textContent : "—";
|
|
228
238
|
renderDeviceChrome();
|
|
229
239
|
return;
|
package/browser/index.html
CHANGED
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
<div class="device-screen">
|
|
112
112
|
<img id="live-frame-image" alt="Current application screen">
|
|
113
113
|
<div id="live-frame-loading" class="hidden">Capturing live application…</div>
|
|
114
|
-
<div class="device-placeholder" id="device-placeholder"><div><strong>No live feed yet</strong>Run a release check or open a live session to see the real application here.</div></div>
|
|
114
|
+
<div class="device-placeholder" id="device-placeholder"><div><strong id="device-placeholder-title">No live feed yet</strong><span id="device-placeholder-detail">Run a release check or open a live session to see the real application here.</span></div></div>
|
|
115
115
|
</div>
|
|
116
116
|
</div>
|
|
117
117
|
<div class="device-meta"><span id="device-feed-label">Live feed</span><span id="device-meta-device">—</span><span id="live-screen-title">—</span></div>
|
|
@@ -304,7 +304,14 @@ export async function runWebFlow({ flow, url, logPath, screenshotDir, recordVide
|
|
|
304
304
|
const pw = playwright || await loadPlaywright();
|
|
305
305
|
const { webBrowserLaunchOptions } = await import("./web-explorer.js");
|
|
306
306
|
const browser = await pw.chromium.launch(webBrowserLaunchOptions());
|
|
307
|
-
const
|
|
307
|
+
const contextOptions = webContextOptions({ device, viewport, devices: pw.devices });
|
|
308
|
+
// Without an explicit size Playwright fits the recording into 800px, so a replay filmed at a
|
|
309
|
+
// desktop viewport came out small and soft however large the window was. Film at the size the
|
|
310
|
+
// run is actually rendered at, which is what exploration already does.
|
|
311
|
+
const context = await browser.newContext({
|
|
312
|
+
...contextOptions,
|
|
313
|
+
...(recordVideoDir ? { recordVideo: { dir: recordVideoDir, ...(contextOptions.viewport ? { size: contextOptions.viewport } : {}) } } : {}),
|
|
314
|
+
});
|
|
308
315
|
const page = await context.newPage();
|
|
309
316
|
const timeout = Number(flow.timeoutMs ?? flow.timeout) || DEFAULT_TIMEOUT;
|
|
310
317
|
page.setDefaultTimeout(timeout);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aarwitz/tapp",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.2",
|
|
4
4
|
"mcpName": "io.github.aarwitz/tapp",
|
|
5
5
|
"description": "Let coding agents verify UI changes on real iOS, Android, and web surfaces, then enforce reviewed proof in deterministic CI.",
|
|
6
6
|
"license": "MIT",
|