@flowriki/agent 0.1.0-beta.8 → 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/dist/cli.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  resolveCheckouts,
9
9
  start,
10
10
  status
11
- } from "./chunk-VN4KB4YX.js";
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(" No graphical session here \u2014 open that link on a computer that has one.\n"));
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(` service ${found.service} ${found.reachable ? green("reachable") : red("unreachable")}`);
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
@@ -9,7 +9,7 @@ import {
9
9
  resolveCheckouts,
10
10
  start,
11
11
  status
12
- } from "./chunk-VN4KB4YX.js";
12
+ } from "./chunk-QGSEWMJE.js";
13
13
  export {
14
14
  AGENT_VERSION,
15
15
  browsersReady,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowriki/agent",
3
- "version": "0.1.0-beta.8",
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-npm"
40
+ "directory": "packages/agent-cli"
41
41
  },
42
42
  "keywords": [
43
43
  "flowriki",