@flowriki/agent 0.1.0-beta.7 → 0.1.0-beta.9
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/README.md +30 -7
- package/dist/{chunk-RNHUFS2Q.js → chunk-QGSEWMJE.js} +2103 -1850
- package/dist/cli.js +10 -3
- package/dist/engine.js +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
resolveCheckouts,
|
|
9
9
|
start,
|
|
10
10
|
status
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QGSEWMJE.js";
|
|
12
12
|
|
|
13
13
|
// src/cli.ts
|
|
14
14
|
import { parseArgs } from "util";
|
|
@@ -37,6 +37,7 @@ ${bold("OPTIONS")}
|
|
|
37
37
|
--name <label> how this computer appears in your dashboard
|
|
38
38
|
--service <url> advanced: a self-hosted Flowriki. Defaults to the
|
|
39
39
|
hosted service, which is what you want.
|
|
40
|
+
--no-open print the approval link without opening a browser
|
|
40
41
|
--json machine-readable output for status and doctor
|
|
41
42
|
-h, --help this
|
|
42
43
|
-v, --version version
|
|
@@ -56,6 +57,7 @@ async function main(argv) {
|
|
|
56
57
|
name: { type: "string" },
|
|
57
58
|
service: { type: "string" },
|
|
58
59
|
json: { type: "boolean" },
|
|
60
|
+
"no-open": { type: "boolean" },
|
|
59
61
|
help: { type: "boolean", short: "h" },
|
|
60
62
|
version: { type: "boolean", short: "v" }
|
|
61
63
|
}
|
|
@@ -81,6 +83,7 @@ Run \`flowriki-agent --help\`.`);
|
|
|
81
83
|
switch (command) {
|
|
82
84
|
case "connect": {
|
|
83
85
|
const result = await connect({
|
|
86
|
+
open: !values["no-open"],
|
|
84
87
|
...service ? { service } : {},
|
|
85
88
|
...values.name ? { machineName: String(values.name) } : {},
|
|
86
89
|
onProgress: (note) => {
|
|
@@ -91,7 +94,7 @@ Run \`flowriki-agent --help\`.`);
|
|
|
91
94
|
console.log(` ${url}
|
|
92
95
|
`);
|
|
93
96
|
if (note.detail?.["canOpen"] === false) {
|
|
94
|
-
console.log(dim("
|
|
97
|
+
console.log(dim(" Open the approval link in your browser.\n"));
|
|
95
98
|
} else {
|
|
96
99
|
console.log(dim(" Opening it for you. If nothing happens, use the link above.\n"));
|
|
97
100
|
}
|
|
@@ -188,7 +191,11 @@ Run \`flowriki-agent --help\`.`);
|
|
|
188
191
|
console.log(` node ${found.node} ${dim(`${found.platform}/${found.arch}`)}`);
|
|
189
192
|
console.log(` protocol ${found.protocolVersion}`);
|
|
190
193
|
console.log(` data ${found.dataDir}`);
|
|
191
|
-
console.log(
|
|
194
|
+
console.log(
|
|
195
|
+
` service ${found.service} ${found.reachable ? green("reachable") : red("unreachable")}` + // WHICH FLOWRIKI, from the service's own mouth. Not the site being
|
|
196
|
+
// tested — that is a project setting and changes nothing here.
|
|
197
|
+
(found.environment ? dim(` [${found.environment}]`) : "")
|
|
198
|
+
);
|
|
192
199
|
console.log(` credential ${found.credentialFingerprint ?? dim("none stored")}`);
|
|
193
200
|
console.log(
|
|
194
201
|
` browsers ${found.playwright.chromiumInstalled ? green("chromium ready") : yellow("chromium not installed")} ${dim(found.playwright.browsersPath ?? "")}`
|
package/dist/engine.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowriki/agent",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.9",
|
|
4
4
|
"description": "Run Flowriki UI tests on your own computer. Connects this machine to your Flowriki account.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"repository": {
|
|
38
38
|
"type": "git",
|
|
39
39
|
"url": "git+https://github.com/Muhammad-Safiullah/flowriki.git",
|
|
40
|
-
"directory": "packages/agent-
|
|
40
|
+
"directory": "packages/agent-cli"
|
|
41
41
|
},
|
|
42
42
|
"keywords": [
|
|
43
43
|
"flowriki",
|