@open-qa/qa 0.1.0-alpha.3 → 0.1.0-alpha.4
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/package.json +7 -7
- package/src/cli-program.js +1 -1
- package/src/doctor-command.js +2 -1
- package/src/execution-snapshot.js +2 -1
- package/src/report/browser.css +1 -1
- package/src/report/browser.js +33 -33
- package/src/run-command.d.ts +7 -0
- package/src/run-command.js +21 -7
- package/src/run-setup-error.d.ts +11 -0
- package/src/run-setup-error.js +18 -0
- package/src/studio-command.d.ts +1 -0
- package/src/studio-command.js +11 -0
- package/src/studio-control.d.ts +5 -0
- package/src/studio-control.js +207 -0
- package/src/studio-review.d.ts +24 -0
- package/src/studio-review.js +64 -0
- package/src/studio-worker.d.ts +1 -0
- package/src/studio-worker.js +48 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-qa/qa",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -80,12 +80,12 @@
|
|
|
80
80
|
"open-qa": "./src/cli.js"
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@open-qa/qa-agents": "0.1.0-alpha.
|
|
84
|
-
"@open-qa/qa-engine": "0.1.0-alpha.
|
|
85
|
-
"@open-qa/qa-inspect": "0.1.0-alpha.
|
|
86
|
-
"@open-qa/qa-replay": "0.1.0-alpha.
|
|
87
|
-
"@open-qa/qa-stage": "0.1.0-alpha.
|
|
88
|
-
"@open-qa/qa-studio": "0.1.0-alpha.
|
|
83
|
+
"@open-qa/qa-agents": "0.1.0-alpha.4",
|
|
84
|
+
"@open-qa/qa-engine": "0.1.0-alpha.4",
|
|
85
|
+
"@open-qa/qa-inspect": "0.1.0-alpha.4",
|
|
86
|
+
"@open-qa/qa-replay": "0.1.0-alpha.4",
|
|
87
|
+
"@open-qa/qa-stage": "0.1.0-alpha.4",
|
|
88
|
+
"@open-qa/qa-studio": "0.1.0-alpha.4",
|
|
89
89
|
"@libsql/client": "^0.15.0",
|
|
90
90
|
"commander": "^15.0.0",
|
|
91
91
|
"drizzle-orm": "^0.45.2",
|
package/src/cli-program.js
CHANGED
|
@@ -73,7 +73,7 @@ function createCli(overrides = {}) {
|
|
|
73
73
|
cli.command("demo-data <directory>").description("Create synthetic Studio demo runs without models or cloud calls").action(async (directory) => {
|
|
74
74
|
await (await commands()).demoCommand(directory);
|
|
75
75
|
});
|
|
76
|
-
cli.command("studio").description("Open the local
|
|
76
|
+
cli.command("studio").description("Open the local QA Studio").option("--root <directory>", ".qa configuration directory").option("--port <port>", "Loopback port (automatically selected by default)").option("--allow-run", "Allow confirmed local flow runs for this launcher session").option("--ready-timeout <milliseconds>", "Ready handshake timeout", "30000").option("--no-open", "Print the URL without opening a browser (default)").action(async (options) => {
|
|
77
77
|
const { studioCommand } = await import("./studio-command.js");
|
|
78
78
|
process.exitCode = await studioCommand(options);
|
|
79
79
|
});
|
package/src/doctor-command.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isProtectedTarget } from "@open-qa/qa-engine";
|
|
1
2
|
import {
|
|
2
3
|
CHECKS,
|
|
3
4
|
environmentPresence,
|
|
@@ -128,7 +129,7 @@ async function doctorCommand(options, adapters = {}) {
|
|
|
128
129
|
"Check target.systems.db and the readonly DB resource in QA_RESOURCES; verify connectivity and token validity.",
|
|
129
130
|
async () => {
|
|
130
131
|
const db = resolveSystems(
|
|
131
|
-
name
|
|
132
|
+
isProtectedTarget(name, target) ? "prod" : name === "local" ? "dev" : "staging",
|
|
132
133
|
{ db: target.systems.db },
|
|
133
134
|
env ?? {}
|
|
134
135
|
).db;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isProtectedTarget } from "@open-qa/qa-engine";
|
|
1
2
|
import { execFile } from "node:child_process";
|
|
2
3
|
import { readFile } from "node:fs/promises";
|
|
3
4
|
import { promisify } from "node:util";
|
|
@@ -61,7 +62,7 @@ function captureExecutionSnapshot(input) {
|
|
|
61
62
|
origin: new URL(target.url).origin,
|
|
62
63
|
allow: target.allow,
|
|
63
64
|
access: target.access ?? "none",
|
|
64
|
-
prodSafeOnly: targetName
|
|
65
|
+
prodSafeOnly: isProtectedTarget(targetName, target)
|
|
65
66
|
},
|
|
66
67
|
effective: {
|
|
67
68
|
prod: plan.prod,
|
package/src/report/browser.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.replayer-wrapper{position:relative}.replayer-mouse{position:absolute;width:20px;height:20px;transition:left .05s linear,top .05s linear;background-size:contain;background-position:center center;background-repeat:no-repeat;background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjMDAwMDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGRhdGEtbmFtZT0iTGF5ZXIgMSIgdmlld0JveD0iMCAwIDUwIDUwIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPkRlc2lnbl90bnA8L3RpdGxlPjxwYXRoIGQ9Ik00OC43MSw0Mi45MUwzNC4wOCwyOC4yOSw0NC4zMywxOEExLDEsMCwwLDAsNDQsMTYuMzlMMi4zNSwxLjA2QTEsMSwwLDAsMCwxLjA2LDIuMzVMMTYuMzksNDRhMSwxLDAsMCwwLDEuNjUuMzZMMjguMjksMzQuMDgsNDIuOTEsNDguNzFhMSwxLDAsMCwwLDEuNDEsMGw0LjM4LTQuMzhBMSwxLDAsMCwwLDQ4LjcxLDQyLjkxWm0tNS4wOSwzLjY3TDI5LDMyYTEsMSwwLDAsMC0xLjQxLDBsLTkuODUsOS44NUwzLjY5LDMuNjlsMzguMTIsMTRMMzIsMjcuNThBMSwxLDAsMCwwLDMyLDI5TDQ2LjU5LDQzLjYyWiI+PC9wYXRoPjwvc3ZnPg==);border-color:transparent}.replayer-mouse:after{content:"";display:inline-block;width:20px;height:20px;background:#4950f6;border-radius:100%;transform:translate(-50%,-50%);opacity:.3}.replayer-mouse.active:after{animation:click .2s ease-in-out 1}.replayer-mouse.touch-device{background-image:none;width:70px;height:70px;border-width:4px;border-style:solid;border-radius:100%;margin-left:-37px;margin-top:-37px;border-color:#4950f600;transition:left 0s linear,top 0s linear,border-color .2s ease-in-out}.replayer-mouse.touch-device.touch-active{border-color:#4950f6;transition:left .25s linear,top .25s linear,border-color .2s ease-in-out}.replayer-mouse.touch-device:after{opacity:0}.replayer-mouse.touch-device.active:after{animation:touch-click .2s ease-in-out 1}.replayer-mouse-tail{position:absolute;pointer-events:none}@keyframes click{0%{opacity:.3;width:20px;height:20px}50%{opacity:.5;width:10px;height:10px}}@keyframes touch-click{0%{opacity:0;width:20px;height:20px}50%{opacity:.5;width:10px;height:10px}}.open-qa-cursor{
|
|
1
|
+
.replayer-wrapper{position:relative}.replayer-mouse{position:absolute;width:20px;height:20px;transition:left .05s linear,top .05s linear;background-size:contain;background-position:center center;background-repeat:no-repeat;background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9JzMwMHB4JyB3aWR0aD0nMzAwcHgnICBmaWxsPSIjMDAwMDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGRhdGEtbmFtZT0iTGF5ZXIgMSIgdmlld0JveD0iMCAwIDUwIDUwIiB4PSIwcHgiIHk9IjBweCI+PHRpdGxlPkRlc2lnbl90bnA8L3RpdGxlPjxwYXRoIGQ9Ik00OC43MSw0Mi45MUwzNC4wOCwyOC4yOSw0NC4zMywxOEExLDEsMCwwLDAsNDQsMTYuMzlMMi4zNSwxLjA2QTEsMSwwLDAsMCwxLjA2LDIuMzVMMTYuMzksNDRhMSwxLDAsMCwwLDEuNjUuMzZMMjguMjksMzQuMDgsNDIuOTEsNDguNzFhMSwxLDAsMCwwLDEuNDEsMGw0LjM4LTQuMzhBMSwxLDAsMCwwLDQ4LjcxLDQyLjkxWm0tNS4wOSwzLjY3TDI5LDMyYTEsMSwwLDAsMC0xLjQxLDBsLTkuODUsOS44NUwzLjY5LDMuNjlsMzguMTIsMTRMMzIsMjcuNThBMSwxLDAsMCwwLDMyLDI5TDQ2LjU5LDQzLjYyWiI+PC9wYXRoPjwvc3ZnPg==);border-color:transparent}.replayer-mouse:after{content:"";display:inline-block;width:20px;height:20px;background:#4950f6;border-radius:100%;transform:translate(-50%,-50%);opacity:.3}.replayer-mouse.active:after{animation:click .2s ease-in-out 1}.replayer-mouse.touch-device{background-image:none;width:70px;height:70px;border-width:4px;border-style:solid;border-radius:100%;margin-left:-37px;margin-top:-37px;border-color:#4950f600;transition:left 0s linear,top 0s linear,border-color .2s ease-in-out}.replayer-mouse.touch-device.touch-active{border-color:#4950f6;transition:left .25s linear,top .25s linear,border-color .2s ease-in-out}.replayer-mouse.touch-device:after{opacity:0}.replayer-mouse.touch-device.active:after{animation:touch-click .2s ease-in-out 1}.replayer-mouse-tail{position:absolute;pointer-events:none}@keyframes click{0%{opacity:.3;width:20px;height:20px}50%{opacity:.5;width:10px;height:10px}}@keyframes touch-click{0%{opacity:0;width:20px;height:20px}50%{opacity:.5;width:10px;height:10px}}.open-qa-cursor{pointer-events:none;position:absolute;z-index:1;width:32px;height:32px;transform-origin:2px 2px;transform:translate(-2px,-2px) scale(calc(1 / var(--replay-display-scale, 1)));color:#fff}.open-qa-cursor svg{display:block;overflow:visible;transform-origin:2px 2px;filter:drop-shadow(0 1px 2px #0009)}.open-qa-cursor path{fill:currentColor;stroke:#202124;stroke-width:2;stroke-linejoin:round}.open-qa-cursor[data-click=true] svg{transform:scale(.94)}.open-qa-cursor[data-click=true]:before{content:"";position:absolute;left:2px;top:2px;width:24px;height:24px;border:2px solid currentColor;border-radius:50%;box-shadow:0 0 0 1px #222;transform:translate(-50%,-50%)}
|
|
2
2
|
:root {
|
|
3
3
|
color-scheme: light dark;
|
|
4
4
|
--canvas: #f5f7fa;
|