@aarwitz/tapp 0.35.8 → 0.35.10

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.
@@ -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.35.8",
4
+ "version": "0.35.10",
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.35.8",
27
+ "@aarwitz/tapp@0.35.10",
28
28
  "mcp"
29
29
  ],
30
30
  "cwd": "${CLAUDE_PROJECT_DIR}"
package/bin/tapp.js CHANGED
@@ -465,7 +465,7 @@ function safeCommandUsage(verb) {
465
465
  baseline: "tapp ci baseline [repo] [--platform PLATFORM] [--target NAME] [--from GATE.json] [--replace]",
466
466
  ci: "tapp ci ...\ntapp ci install [repo] [--out FILE] [--manifest FILE] [--dry-run] [--replace]\ntapp ci baseline [repo] [--platform PLATFORM] [--target NAME] [--from GATE.json] [--replace]",
467
467
  actor: "tapp plan actor set NAME --email-env ENV --password-env ENV [--replace] [--project-dir DIR]\ntapp plan actor list [repo]",
468
- app: "tapp app [repo] [--no-open] [--port PORT]",
468
+ app: "tapp app [repo] [--no-open] [--port PORT] [--connect [https://app.runtapp.com]]\n --connect: drive this machine from the hosted Studio in your browser; everything still runs here",
469
469
  report: "tapp report [captureId|latest]\n --journeys: list the journeys you own and how each one's last check went (exit 1 if any is failing)\n Add --studio https://app.runtapp.com (or $TAPP_STUDIO) with a token from the Studio's “Your coding agent” card ($TAPP_TOKEN) to ask your hosted Studio.",
470
470
  feedback: "tapp feedback \"short title\" [--body TEXT|--body-file FILE] [--type bug|idea|question] [--capture ID|latest|none] [--as human] [--submit] [--json]\n Drafts a public GitHub issue on aarwitz/tapp about tapp itself; --submit files it with the authenticated gh CLI.\n Exit codes: 0 drafted or filed · 1 gh submission failed · 2 usage error",
471
471
  audit: "tapp explore --read-only <url> [<url>...] [--urls FILE] [--pages N] [--delay MS] [--links N] [--json [FILE]] [--no-capture] [--device NAME] [--viewport WxH]\n Read-only: renders each page and reads it, never clicks — safe to point at production or a site you do not own.\n Finds dead controls, broken images/assets/links, 5xx/failed requests, JS exceptions, mixed content, horizontal overflow.\n --pages N crawls same-origin links (robots.txt honoured, --delay between pages). Writes a capture with screenshots, evidence and report.html.\n Exit codes: 0 nothing broken · 1 defects found · 2 usage/infrastructure",
@@ -2479,6 +2479,12 @@ switch (command) {
2479
2479
  // there is no way to offer them safely to an anonymous visitor on a shared machine.
2480
2480
  const publicAccess = flags.public === true;
2481
2481
  const publicOrigin = typeof flags.origin === "string" ? flags.origin : "";
2482
+ // --connect: this runtime is driven from app.runtapp.com (or another hosted Studio) in the
2483
+ // browser, instead of from its own page. The hosted page is opened with this runtime's
2484
+ // address and launch secret in the URL fragment, which never reaches the hosted server.
2485
+ const connectOrigin = flags.connect === true ? "https://app.runtapp.com" : typeof flags.connect === "string" ? flags.connect.replace(/\/$/, "") : "";
2486
+ if (connectOrigin && publicAccess) { console.error("❌ --connect is for a Studio on your own machine, not a --public one"); process.exit(2); }
2487
+ if (connectOrigin && !/^https?:\/\/[^\s/]+$/.test(connectOrigin)) { console.error("❌ --connect needs a Studio origin like https://app.runtapp.com"); process.exit(2); }
2482
2488
  // https for anything real; plain http on loopback so the public mode can be dry-run locally
2483
2489
  // before a tunnel or TLS terminator is in front of it.
2484
2490
  const localOrigin = /^http:\/\/(?:127\.0\.0\.1|localhost|\[::1\])(?::\d{1,5})?$/.test(publicOrigin);
@@ -2490,10 +2496,11 @@ switch (command) {
2490
2496
  const { startBrowserProduct } = await import(path.join(packageRoot, "mcp-server", "src", "browser-product.js"));
2491
2497
  const product = await startBrowserProduct({
2492
2498
  projectDir, port,
2493
- launch: !publicAccess && flags.open !== false && flags["no-open"] !== true,
2499
+ launch: !publicAccess && !connectOrigin && flags.open !== false && flags["no-open"] !== true,
2494
2500
  // A loopback origin is a trial of the public Studio on your own machine; pinning its
2495
2501
  // browser to public addresses would stop it reaching the very thing you are trying.
2496
2502
  ...(publicAccess ? { publicAccess: true, publicOrigin, publicEgressOnly: !localOrigin } : {}),
2503
+ ...(connectOrigin ? { connectOrigin } : {}),
2497
2504
  });
2498
2505
  if (publicAccess) {
2499
2506
  console.log(`Tapp · public Studio for ${publicOrigin}`);
@@ -2501,6 +2508,12 @@ switch (command) {
2501
2508
  console.log("Anonymous visitors may audit a public website read-only. Repositories, live");
2502
2509
  console.log("sessions and the release gate require an authenticated local session.");
2503
2510
  console.log(localOrigin ? "Local trial: browser egress is not pinned, so this can reach services on this machine." : "Browser egress is pinned to public addresses; private ranges are refused.");
2511
+ } else if (connectOrigin) {
2512
+ console.log(`Tapp · this machine, driven from ${connectOrigin}`);
2513
+ console.log(`Open: ${product.connectUrl}`);
2514
+ console.log(`If that page cannot reach this machine (some browsers refuse), open it directly: ${product.launchUrl}`);
2515
+ console.log("Everything still runs here; press Ctrl-C to stop.");
2516
+ if (flags.open !== false && flags["no-open"] !== true) product.openConnect();
2504
2517
  } else {
2505
2518
  console.log(`Tapp · ${product.root || "choose a local folder or GitHub repository in the browser"}`);
2506
2519
  console.log(`Open: ${product.launchUrl}`);
package/browser/app.css CHANGED
@@ -477,6 +477,13 @@ dialog::backdrop { background:rgba(0,0,0,.6); }
477
477
  .prompt-suggestions button:hover { background:var(--tapp-panel); }
478
478
  .prompt-suggestions button span { font-size:16px; text-align:center; } .prompt-suggestions button b { font-weight:600; font-family:var(--tapp-font-mono); font-size:12.5px; white-space:nowrap; } .prompt-suggestions button small { color:var(--tapp-text-faint); font-size:12.5px; }
479
479
  .prompt-note { text-align:center; color:var(--tapp-text-faint); font-size:12px; margin:8px 0 0; }
480
+ .connecting-note { font-size:13px; color:var(--tapp-text-soft); margin:0 auto 14px; max-width:620px; }
481
+ #business-results { display:grid; gap:10px; margin:12px 0; }
482
+ #business-results p { margin:0; }
483
+ .business-match { display:flex; flex-wrap:wrap; gap:6px 12px; align-items:center; border-top:1px solid var(--tapp-border); padding:10px 0; }
484
+ .business-match strong { flex:1 1 60%; }
485
+ .business-match small { display:block; font-weight:400; }
486
+ .business-match button { overflow-wrap:anywhere; }
480
487
  .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
481
488
 
482
489
  /* ---- Overview stage: the device as big as it can be, the chat floating over the corner -------- */
@@ -514,6 +521,16 @@ dialog::backdrop { background:rgba(0,0,0,.6); }
514
521
  .chat-line em { color:var(--tapp-text-faint); font-style:normal; }
515
522
  .chat-line.phase { color:var(--tapp-text-soft); }
516
523
  .chat-line.warning { color:var(--tapp-amber); }
524
+ .chat-line.agent { color:var(--tapp-text); white-space:pre-wrap; }
525
+ .chat-line.you { color:var(--tapp-text-soft); font-style:italic; }
526
+ /* Asking the person's own agent (ADR-0012). */
527
+ .chat-prompt { display:flex; gap:6px; padding:8px; border-top:1px solid var(--tapp-border); }
528
+ .chat-prompt input { flex:1 1 auto; min-width:0; font:inherit; font-size:13px; padding:8px 10px; border-radius:10px; border:1px solid var(--tapp-border); background:rgba(0,0,0,.25); color:var(--tapp-text); }
529
+ .chat-prompt button { font:inherit; font-size:12px; padding:7px 12px; border-radius:10px; cursor:pointer; white-space:nowrap; }
530
+ .engine-row { display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:center; padding:8px 10px; border-bottom:1px solid var(--tapp-border); font-size:13px; }
531
+ .engine-row:last-child { border-bottom:0; }
532
+ .engine-row small { color:var(--muted); display:block; }
533
+ .engine-row .journey-status.warning { background:rgba(210,153,34,.18); color:var(--tapp-amber-soft, #e3b341); }
517
534
  .chat-line.finding.critical, .chat-line.finding.high { color:var(--tapp-red); } .chat-line.finding.medium { color:var(--tapp-amber); } .chat-line.finding.low { color:var(--tapp-text-soft); }
518
535
  .chat-line.typing { color:var(--tapp-text-faint); } .chat-line.typing i { font-style:normal; animation:ellipsis 1.2s steps(4) infinite; }
519
536
  @keyframes ellipsis { 0% { content:""; opacity:.2; } 100% { opacity:1; } }
@@ -576,6 +593,29 @@ dialog::backdrop { background:rgba(0,0,0,.6); }
576
593
  .selfhost-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
577
594
  .selfhost-row code { flex:1 1 220px; font-family:var(--tapp-font-mono); font-size:12.5px; padding:9px 12px; border-radius:10px; border:1px solid var(--line); background:rgba(0,0,0,.25); color:inherit; overflow-wrap:anywhere; }
578
595
  .selfhost-row button { font:inherit; font-size:12px; padding:7px 12px; border-radius:999px; border:1px solid var(--line); background:var(--control); color:inherit; cursor:pointer; }
596
+ .selfhost-row input { flex:1 1 220px; min-width:0; font:inherit; font-size:13px; padding:9px 12px; border-radius:10px; border:1px solid var(--line); background:rgba(0,0,0,.15); color:inherit; }
597
+ .linklike { font:inherit; font-size:inherit; background:none; border:0; padding:0; color:var(--tapp-accent, #4f6cf7); cursor:pointer; text-decoration:underline; }
598
+ .cloud-sent { margin:8px 0 0; }
599
+ /* Setting this machine up (ADR-0012). */
600
+ .setup-card { max-width:760px; margin:18px auto 0; padding:16px 18px; border-radius:var(--tapp-radius-lg, 14px); border:1px solid var(--line); background:var(--control); font-size:13px; line-height:1.5; text-align:left; }
601
+ .setup-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
602
+ .setup-head h2 { margin:2px 0 4px; font-size:16px; } .setup-head p { margin:0; } .setup-head .eyebrow { margin:0; }
603
+ .setup-steps { list-style:none; margin:12px 0 0; padding:0; display:grid; gap:10px; }
604
+ .setup-step { display:grid; grid-template-columns:26px 1fr; gap:10px; padding:10px 0 0; border-top:1px solid var(--tapp-border); }
605
+ .setup-step > i { font-style:normal; font-size:16px; text-align:center; line-height:1.3; }
606
+ .setup-step h3 { margin:0 0 2px; font-size:13.5px; } .setup-step p { margin:0; color:var(--tapp-text-soft); }
607
+ .setup-step ul { list-style:none; margin:6px 0 0; padding:0; display:grid; gap:3px; }
608
+ .setup-step li { display:grid; grid-template-columns:18px 1fr; gap:6px; } .setup-step li small { color:var(--tapp-text-faint); display:block; }
609
+ .setup-step li.engine-line { grid-template-columns:96px 1fr; gap:10px; align-items:start; margin-top:4px; }
610
+ .setup-step li.engine-line .journey-status { white-space:nowrap; }
611
+ .setup-step form { display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }
612
+ .setup-step form input { flex:1 1 220px; min-width:0; font:inherit; font-size:13px; padding:7px 10px; border-radius:10px; border:1px solid var(--line); background:rgba(0,0,0,.15); color:inherit; }
613
+ .setup-step form button, .setup-step .button-row button { font:inherit; font-size:12px; padding:6px 12px; border-radius:999px; cursor:pointer; }
614
+ .setup-step .button-row { display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; align-items:center; }
615
+ .setup-step code { font-family:var(--tapp-font-mono); font-size:12px; padding:1px 5px; border-radius:6px; background:rgba(0,0,0,.25); }
616
+ .setup-summary { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:8px; }
617
+ .setup-card.collapsed .setup-steps { display:none; }
618
+
579
619
  /* Linking this machine to an account (ADR-0011 §4). */
580
620
  .link-form { display:grid; gap:8px; max-width:560px; }
581
621
  .link-form input { font:inherit; padding:9px 12px; border-radius:10px; border:1px solid var(--line); background:rgba(0,0,0,.15); color:inherit; }