@aarwitz/tapp 0.35.0 → 0.35.3
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.
|
|
4
|
+
"version": "0.35.3",
|
|
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.
|
|
27
|
+
"@aarwitz/tapp@0.35.3",
|
|
28
28
|
"mcp"
|
|
29
29
|
],
|
|
30
30
|
"cwd": "${CLAUDE_PROJECT_DIR}"
|
package/bin/tapp.js
CHANGED
|
@@ -2485,7 +2485,7 @@ switch (command) {
|
|
|
2485
2485
|
issue = fb.composeFeedback({ title, body, type, version: pkg.version, doctor, captureId, filedBy: flags.as === "human" ? "human" : "agent" });
|
|
2486
2486
|
} catch (error) { console.error(`❌ ${error.message}\n${usage}`); process.exit(2); }
|
|
2487
2487
|
const url = fb.feedbackIssueUrl(issue);
|
|
2488
|
-
let submitted = false, issueUrl = null;
|
|
2488
|
+
let submitted = false, issueUrl = null, labelsApplied = false;
|
|
2489
2489
|
if (flags.submit === true) {
|
|
2490
2490
|
const status = fb.ghStatus();
|
|
2491
2491
|
if (!status.available) {
|
|
@@ -2499,13 +2499,20 @@ switch (command) {
|
|
|
2499
2499
|
else console.error(`❌ gh issue create failed: ${result.detail}\n Prefilled issue link: ${url}`);
|
|
2500
2500
|
process.exit(1);
|
|
2501
2501
|
}
|
|
2502
|
-
submitted = true; issueUrl = result.url;
|
|
2502
|
+
submitted = true; issueUrl = result.url; labelsApplied = result.labelsApplied;
|
|
2503
2503
|
}
|
|
2504
2504
|
if (flags.json === true) {
|
|
2505
|
-
console.log(JSON.stringify({ ...issue, url, submitted, issueUrl }, null, 2));
|
|
2505
|
+
console.log(JSON.stringify({ ...issue, url, submitted, issueUrl, labelsApplied }, null, 2));
|
|
2506
|
+
break;
|
|
2507
|
+
}
|
|
2508
|
+
if (submitted) {
|
|
2509
|
+
ok("Filed feedback", issueUrl);
|
|
2510
|
+
// Setting labels needs triage rights on the repository, which almost nobody filing has.
|
|
2511
|
+
// Say what happened rather than leaving it to be noticed: the repository labels it on
|
|
2512
|
+
// arrival (.github/workflows/label-feedback.yml).
|
|
2513
|
+
if (!labelsApplied) console.log(` Filed without labels — that needs triage rights. The repository adds ${issue.labels.join(", ")} on arrival.`);
|
|
2506
2514
|
break;
|
|
2507
2515
|
}
|
|
2508
|
-
if (submitted) { ok("Filed feedback", issueUrl); break; }
|
|
2509
2516
|
console.log(`📝 Feedback draft (not filed — issues on ${fb.FEEDBACK_REPO} are public; confirm with the user first):\n`);
|
|
2510
2517
|
console.log(`Title: ${issue.title}\nLabels: ${issue.labels.join(", ")}\n\n${issue.body}`);
|
|
2511
2518
|
console.log(`File it: tapp feedback ${JSON.stringify(issue.title)} … --submit (uses your authenticated gh)\nOr open: ${url}`);
|
|
@@ -90,11 +90,24 @@ export function validateFlowSteps(flow, platform = inferFlowPlatform(flow)) {
|
|
|
90
90
|
return errors;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
+
/**
|
|
94
|
+
* The variables a Flow's `$NAME` placeholders resolve against, weakest source first:
|
|
95
|
+
* built-in credentials, the Flow's own `vars:` defaults, `tapp run --var NAME=VALUE`, and
|
|
96
|
+
* finally whatever the caller passes explicitly.
|
|
97
|
+
*
|
|
98
|
+
* `--var` arrives as TAPP_FLOW_VARS. It used to be read by the web runner alone, so the same
|
|
99
|
+
* Flow substituted on web and silently did not on iOS, Android or macOS — the flag was accepted,
|
|
100
|
+
* nothing was printed, and the step ran with an unresolved placeholder (field issue #35).
|
|
101
|
+
*/
|
|
93
102
|
export function flowVariables(flow, overrides = {}) {
|
|
103
|
+
let fromCommandLine = {};
|
|
104
|
+
try { fromCommandLine = process.env.TAPP_FLOW_VARS ? JSON.parse(process.env.TAPP_FLOW_VARS) : {}; }
|
|
105
|
+
catch { fromCommandLine = {}; }
|
|
94
106
|
return {
|
|
95
107
|
TEST_EMAIL: process.env.OCQA_TEST_EMAIL || "test@example.com",
|
|
96
108
|
TEST_PASSWORD: process.env.OCQA_TEST_PASSWORD || "TestPass123!",
|
|
97
109
|
...(flow?.vars || {}),
|
|
110
|
+
...fromCommandLine,
|
|
98
111
|
...overrides,
|
|
99
112
|
};
|
|
100
113
|
}
|
package/mcp-server/src/index.js
CHANGED
|
@@ -3229,7 +3229,10 @@ async function handleTool(name, args = {}) {
|
|
|
3229
3229
|
if (!status.available) return errorResult("The GitHub CLI is not authenticated on this machine, so nothing was filed. Give the user the prefilled link instead.", { url, ...issue, submitted: false });
|
|
3230
3230
|
const result = fb.submitFeedbackViaGh(issue);
|
|
3231
3231
|
if (!result.ok) return errorResult(`gh issue create failed: ${result.detail}`, { url, ...issue, submitted: false });
|
|
3232
|
-
|
|
3232
|
+
// Labels need triage rights, which almost no filer has; the repository applies them on
|
|
3233
|
+
// arrival instead (.github/workflows/label-feedback.yml). Say which happened.
|
|
3234
|
+
const labelNote = result.labelsApplied ? "" : `\nFiled without labels — that needs triage rights. The repository adds ${issue.labels.join(", ")} on arrival.`;
|
|
3235
|
+
return richResult(`✅ Filed feedback: ${result.url}${labelNote}`, { submitted: true, issueUrl: result.url, labelsApplied: result.labelsApplied, ...issue });
|
|
3233
3236
|
}
|
|
3234
3237
|
return richResult(
|
|
3235
3238
|
`📝 Feedback drafted, not filed. Issues on ${fb.FEEDBACK_REPO} are public — confirm with the user, then call tapp_feedback again with submit: true, or give them this prefilled link:\n${url}\n\nTitle: ${issue.title}\nLabels: ${issue.labels.join(", ")}\n\n${issue.body}`,
|
|
@@ -32,27 +32,27 @@ export const PLATFORM_STATES = Object.freeze(["ready", "needs-machine", "pilot"]
|
|
|
32
32
|
/** What tapp aims at, in the order a person should see them. */
|
|
33
33
|
export const PLATFORM_TARGETS = Object.freeze([
|
|
34
34
|
{
|
|
35
|
-
id: "web", label: "Web", give: "A website URL",
|
|
35
|
+
id: "web", label: "Web", subject: "websites", give: "A website URL",
|
|
36
36
|
driver: "playwright", needs: "Playwright and Chromium, which tapp installs",
|
|
37
37
|
machine: "any machine",
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
|
-
id: "ios", label: "iOS", give: "A simulator .app or a bundle id",
|
|
40
|
+
id: "ios", label: "iOS", subject: "iOS apps", give: "A simulator .app or a bundle id",
|
|
41
41
|
driver: "xcuitest", needs: "macOS with Xcode",
|
|
42
42
|
machine: "a Mac with Xcode",
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
id: "android", label: "Android", give: "An .apk or a connected device",
|
|
45
|
+
id: "android", label: "Android", subject: "Android apps", give: "An .apk or a connected device",
|
|
46
46
|
driver: "adb", needs: "the Android SDK and adb",
|
|
47
47
|
machine: "a machine with the Android SDK",
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
|
-
id: "macos", label: "macOS app", give: "A .app
|
|
50
|
+
id: "macos", label: "macOS app", subject: "macOS apps", give: "A .app",
|
|
51
51
|
driver: "accessibility", needs: "macOS, and the Accessibility permission",
|
|
52
52
|
machine: "a Mac",
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
id: "windows", label: "Windows app", give: "A WPF, WinForms or WinUI app",
|
|
55
|
+
id: "windows", label: "Windows app", subject: "Windows apps", give: "A WPF, WinForms or WinUI app",
|
|
56
56
|
driver: null, needs: "Windows",
|
|
57
57
|
machine: "a Windows machine",
|
|
58
58
|
},
|
|
@@ -104,7 +104,7 @@ export function platformStates({ hosted = false, env = process.env, platform = p
|
|
|
104
104
|
...target,
|
|
105
105
|
state: "pilot", because: "no-driver",
|
|
106
106
|
summary: `tapp has no ${target.label} driver yet — it is being built.`,
|
|
107
|
-
how: `Running ${
|
|
107
|
+
how: `Running ${target.subject} locally will need ${target.machine}. Until the driver lands we do these runs with you: tell us about your app, or have tapp run it for you.`,
|
|
108
108
|
command: "",
|
|
109
109
|
};
|
|
110
110
|
}
|
|
@@ -126,8 +126,8 @@ export function platformStates({ hosted = false, env = process.env, platform = p
|
|
|
126
126
|
...target,
|
|
127
127
|
state: "needs-machine", because,
|
|
128
128
|
summary: because === "not-exposed"
|
|
129
|
-
? `tapp drives ${target.
|
|
130
|
-
: `tapp drives ${target.
|
|
129
|
+
? `tapp drives ${target.subject}, and this machine could — but a public Studio only starts website runs.`
|
|
130
|
+
: `tapp drives ${target.subject}, but this Studio is not on ${target.machine}.`,
|
|
131
131
|
// Two ways out, always both: self-host is the same product without the hosting (ADR-0006),
|
|
132
132
|
// and not everyone has the machine or wants to keep it awake.
|
|
133
133
|
how: `Run this Studio on ${target.machine} and give it ${lower(target.give)} there — or have tapp run it for you.`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aarwitz/tapp",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.3",
|
|
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",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"mobile"
|
|
99
99
|
],
|
|
100
100
|
"scripts": {
|
|
101
|
-
"test": "node --test tests/report.test.js tests/regression.test.js tests/engine.test.js tests/project-config.test.js tests/application-model.test.js tests/ui-map.test.js tests/focused-navigation.test.js tests/task-runtime.test.js tests/release-contract.test.js tests/pr-selection.test.js tests/flow-runtime.test.js tests/web-explorer.test.js tests/web-session.test.js tests/web-link-audit.test.js tests/web-overlay.test.js tests/web-audit.test.js tests/page-observations.test.js tests/capture-provenance.test.js tests/capture-frames.test.js tests/actor-store.test.js tests/account-store.test.js tests/alerts.test.js tests/access-jwt.test.js tests/oauth.test.js tests/studio-client.test.js tests/journeys.test.js tests/ios-crash-attribution.test.js tests/ios-simulator-selection.test.js tests/ios-recording-stop.test.js tests/web-flow.test.js tests/sign-in.test.js tests/scenario-runtime.test.js tests/android-driver.test.js tests/android-explorer.test.js tests/android-flow.test.js tests/macos-driver.test.js tests/android-primitives-protocol.test.js tests/managed-web.test.js tests/product-operations.test.js tests/job-lanes.test.js tests/browser-product.test.js tests/browser-chat-narration.test.js tests/browser-onboarding.test.js tests/managed-operation.test.js tests/ci-setup.test.js tests/ci-install.test.js tests/cli.test.js tests/mcp-workspace.test.js tests/action.test.js tests/package-surface.test.js tests/agent-surface.test.js tests/platforms.test.js tests/presentation-contract.test.js tests/landing-brand.test.js tests/ci-gate.test.js tests/ci-report.test.js tests/desktop-protocol.test.js tests/ios-flow-protocol.test.js tests/feedback-triage-0919.test.js vscode-extension/test/bridge.test.js",
|
|
101
|
+
"test": "node --test tests/report.test.js tests/regression.test.js tests/engine.test.js tests/project-config.test.js tests/application-model.test.js tests/ui-map.test.js tests/focused-navigation.test.js tests/task-runtime.test.js tests/release-contract.test.js tests/pr-selection.test.js tests/flow-runtime.test.js tests/flow-variables.test.js tests/feedback.test.js tests/web-explorer.test.js tests/web-session.test.js tests/web-link-audit.test.js tests/web-overlay.test.js tests/web-audit.test.js tests/page-observations.test.js tests/capture-provenance.test.js tests/capture-frames.test.js tests/actor-store.test.js tests/account-store.test.js tests/alerts.test.js tests/access-jwt.test.js tests/oauth.test.js tests/studio-client.test.js tests/journeys.test.js tests/ios-crash-attribution.test.js tests/ios-simulator-selection.test.js tests/ios-recording-stop.test.js tests/web-flow.test.js tests/sign-in.test.js tests/scenario-runtime.test.js tests/android-driver.test.js tests/android-explorer.test.js tests/android-flow.test.js tests/macos-driver.test.js tests/android-primitives-protocol.test.js tests/managed-web.test.js tests/product-operations.test.js tests/job-lanes.test.js tests/browser-product.test.js tests/browser-chat-narration.test.js tests/browser-onboarding.test.js tests/managed-operation.test.js tests/ci-setup.test.js tests/ci-install.test.js tests/cli.test.js tests/mcp-workspace.test.js tests/action.test.js tests/package-surface.test.js tests/agent-surface.test.js tests/platforms.test.js tests/presentation-contract.test.js tests/landing-brand.test.js tests/ci-gate.test.js tests/ci-report.test.js tests/desktop-protocol.test.js tests/ios-flow-protocol.test.js tests/feedback-triage-0919.test.js vscode-extension/test/bridge.test.js",
|
|
102
102
|
"test:browser-journey": "node --test tests/browser-journey.test.js",
|
|
103
103
|
"test:browser-native": "TAPP_RUN_NATIVE_BROWSER=1 node --test tests/browser-native-journey.test.js"
|
|
104
104
|
}
|
package/scripts/run-flow.sh
CHANGED
|
@@ -56,6 +56,13 @@ d = {
|
|
|
56
56
|
"OCQA_TEST_EMAIL": os.environ.get("OCQA_TEST_EMAIL", "test@example.com"),
|
|
57
57
|
"OCQA_TEST_PASSWORD": os.environ.get("OCQA_TEST_PASSWORD", "TestPass123!"),
|
|
58
58
|
}
|
|
59
|
+
# `tapp run FLOW --var NAME=VALUE`. The harness has read OCQA_FLOW_VARS since Flows gained
|
|
60
|
+
# variables; nothing ever set it, so on iOS every --var silently resolved to nothing while the
|
|
61
|
+
# same Flow worked on web (field issue #35). Both ends existed; this is the wire between them.
|
|
62
|
+
flow_vars = os.environ.get("TAPP_FLOW_VARS", "").strip()
|
|
63
|
+
if flow_vars:
|
|
64
|
+
json.loads(flow_vars) # refuse malformed input here rather than inside the harness
|
|
65
|
+
d["OCQA_FLOW_VARS"] = flow_vars
|
|
59
66
|
launch_args = os.environ.get("OCQA_APP_LAUNCH_ARGS_JSON", "")
|
|
60
67
|
if launch_args:
|
|
61
68
|
value = json.loads(launch_args)
|