@aarwitz/tapp 0.25.0 → 0.25.1
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/bin/tapp.js +16 -2
- package/package.json +1 -1
- package/scripts/run-web-flow.js +3 -0
|
@@ -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.25.
|
|
4
|
+
"version": "0.25.1",
|
|
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.25.
|
|
27
|
+
"@aarwitz/tapp@0.25.1",
|
|
28
28
|
"mcp"
|
|
29
29
|
],
|
|
30
30
|
"cwd": "${CLAUDE_PROJECT_DIR}"
|
package/bin/tapp.js
CHANGED
|
@@ -399,7 +399,7 @@ function safeCommandUsage(verb) {
|
|
|
399
399
|
shot: "tapp look --sim [--out FILE]",
|
|
400
400
|
apps: "tapp apps",
|
|
401
401
|
build: "tapp build [repo] [--scheme NAME] [--configuration NAME]",
|
|
402
|
-
flow: "tapp run FLOW.yml [--actor NAME] [--email VALUE] [--password VALUE] [--device \"iPhone 13\"] [--viewport 390x844]\n iOS: [--device \"iPhone 16\"|UDID] chooses the simulator (required when more than one is booted; TAPP_UDID is the default) [--launch-arg ARG] [--launch-env JSON]\ntapp validate FLOW.yml [--platform PLATFORM] [--map FILE]\ntapp validate --example print a complete starter Flow YAML\n Exit codes: 0 replay passed · 1 replay failed · 2 infrastructure/usage error",
|
|
402
|
+
flow: "tapp run FLOW.yml [--var NAME=VALUE ...] [--actor NAME] [--email VALUE] [--password VALUE] [--device \"iPhone 13\"] [--viewport 390x844]\n iOS: [--device \"iPhone 16\"|UDID] chooses the simulator (required when more than one is booted; TAPP_UDID is the default) [--launch-arg ARG] [--launch-env JSON]\ntapp validate FLOW.yml [--platform PLATFORM] [--map FILE]\ntapp validate --example print a complete starter Flow YAML\n Exit codes: 0 replay passed · 1 replay failed · 2 infrastructure/usage error",
|
|
403
403
|
task: "tapp validate TASK.yml [--platform PLATFORM] [--map FILE]\ntapp validate TASK.yml --compile --platform PLATFORM [--inputs JSON] [--out FILE]\ntapp run TASK.yml --platform PLATFORM [--url URL|--bundle-id ID|--app-id ID] [--inputs JSON]",
|
|
404
404
|
contract: "tapp validate FILE.contract.ts [--platform PLATFORM] [--map FILE]\ntapp validate FILE.contract.ts --compile --platform PLATFORM [--out FILE]\ntapp run FILE.contract.ts --platform PLATFORM [--url URL|--bundle-id ID|--app-id ID]\n Exit codes: 0 contract held · 1 contract failed · 2 infrastructure/usage error",
|
|
405
405
|
scenario: "tapp validate SCENARIO.yml [--project-dir DIR]\ntapp run SCENARIO.yml --platform web --url URL [--project-dir DIR]\n Exit codes: 0 scenario passed · 1 scenario failed · 2 infrastructure/usage error",
|
|
@@ -1409,7 +1409,7 @@ switch (command) {
|
|
|
1409
1409
|
break;
|
|
1410
1410
|
}
|
|
1411
1411
|
if (!["run", "validate"].includes(verb) || !flowPath) {
|
|
1412
|
-
console.error("usage: tapp validate --example\n tapp flow steps [--json]\n tapp run <flow.yml|glob> [...more] [--platform ios|android|web] [--actor NAME] [--email VALUE] [--password VALUE] [--url URL] [--app-id ID] [--apk FILE] [--serial ID]\n tapp validate <flow.yml|glob> [...more]\n Several Flows (or a glob) run in sequence and print one line per Flow; exit 1 if any failed.");
|
|
1412
|
+
console.error("usage: tapp validate --example\n tapp flow steps [--json]\n tapp run <flow.yml|glob> [...more] [--var NAME=VALUE ...] [--platform ios|android|web] [--actor NAME] [--email VALUE] [--password VALUE] [--url URL] [--app-id ID] [--apk FILE] [--serial ID]\n tapp validate <flow.yml|glob> [...more]\n Several Flows (or a glob) run in sequence and print one line per Flow; exit 1 if any failed.");
|
|
1413
1413
|
process.exit(2);
|
|
1414
1414
|
}
|
|
1415
1415
|
// Several Flows in one command (field issue #9): the shell usually expands the glob, but a
|
|
@@ -1528,6 +1528,20 @@ switch (command) {
|
|
|
1528
1528
|
env[envKey] = value;
|
|
1529
1529
|
}
|
|
1530
1530
|
}
|
|
1531
|
+
// Repeated --var NAME=VALUE. parseVerbArgs keeps only the last value for a repeated flag, so
|
|
1532
|
+
// read them off the argument list directly.
|
|
1533
|
+
const flowVars = {};
|
|
1534
|
+
for (let i = 0; i < rest.length - 1; i += 1) {
|
|
1535
|
+
if (rest[i] !== "--var") continue;
|
|
1536
|
+
const [name, ...value] = String(rest[i + 1]).split("=");
|
|
1537
|
+
if (!/^[A-Za-z_][A-Za-z0-9_]*$/.test(name) || !value.length) {
|
|
1538
|
+
console.error(`❌ --var expects NAME=VALUE (got '${rest[i + 1]}')`);
|
|
1539
|
+
process.exit(2);
|
|
1540
|
+
}
|
|
1541
|
+
flowVars[name] = value.join("=");
|
|
1542
|
+
}
|
|
1543
|
+
if (Object.keys(flowVars).length) env.TAPP_FLOW_VARS = JSON.stringify(flowVars);
|
|
1544
|
+
|
|
1531
1545
|
let invocation;
|
|
1532
1546
|
if (platform === "web") {
|
|
1533
1547
|
const url = typeof flags.url === "string" ? flags.url : flow.url || flow.app;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aarwitz/tapp",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.1",
|
|
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",
|
package/scripts/run-web-flow.js
CHANGED
|
@@ -28,6 +28,9 @@ try {
|
|
|
28
28
|
...(process.env.TAPP_WORKFLOW_REPLAY === "1" ? {strictOrigin:true,variables:{
|
|
29
29
|
TEST_RUN_ID:process.env.TEST_RUN_ID || "",TEST_EMAIL:process.env.OCQA_TEST_EMAIL || "",TEST_PASSWORD:process.env.OCQA_TEST_PASSWORD || "",
|
|
30
30
|
}} : {}),
|
|
31
|
+
// `tapp run FLOW --var NAME=VALUE` — the same journey against another environment, coach or
|
|
32
|
+
// tenant without editing it. Merged over the Flow's own `vars:` defaults (flowVariables).
|
|
33
|
+
...(process.env.TAPP_FLOW_VARS ? { variables: JSON.parse(process.env.TAPP_FLOW_VARS) } : {}),
|
|
31
34
|
device: process.env.TAPP_WEB_DEVICE || "",
|
|
32
35
|
viewport: process.env.TAPP_WEB_VIEWPORT || "",
|
|
33
36
|
});
|