flowstride 1.0.10 → 1.0.11
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 +14 -2
- package/dist/cli/index.js +9 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,7 +35,19 @@ npx flowstride init
|
|
|
35
35
|
|
|
36
36
|
_(This creates the default directory structure (`/flows`, `/reports`, `/plugins`) and generates a `example.flow` sample file.)_
|
|
37
37
|
|
|
38
|
-
**3.
|
|
38
|
+
**3. Install VS Code Extension (Highly Recommended):**
|
|
39
|
+
|
|
40
|
+
To get the best developer experience, including syntax highlighting, auto-completion, and native IDE support for .flow files, install our official VS Code extension directly via the VS Code CLI.
|
|
41
|
+
|
|
42
|
+
Run the command below:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
code --install-extension flowstride.flowstride-vscode
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
_Alternatively, you can open the Extensions tab in VS Code and search for Flowstride Automation_
|
|
49
|
+
|
|
50
|
+
**4. Run your first test:**
|
|
39
51
|
|
|
40
52
|
```bash
|
|
41
53
|
npx flowstride run
|
|
@@ -47,7 +59,7 @@ npx flowstride run flows/example.flow
|
|
|
47
59
|
|
|
48
60
|
_(This command executes your test while instantly booting up the local Flowstride Dashboard.)_
|
|
49
61
|
|
|
50
|
-
**
|
|
62
|
+
**5. Login to Flowstride Cloud:**
|
|
51
63
|
|
|
52
64
|
Authenticate your local project with your Cloud account to unlock Cloud features after signing up at [cloud.flowstride.io](https://cloud.flowstride.io).
|
|
53
65
|
|
package/dist/cli/index.js
CHANGED
|
@@ -45,6 +45,7 @@ const fs = __importStar(require("fs"));
|
|
|
45
45
|
const path = __importStar(require("path"));
|
|
46
46
|
const os = __importStar(require("os"));
|
|
47
47
|
const tar = __importStar(require("tar"));
|
|
48
|
+
const child_process_1 = require("child_process");
|
|
48
49
|
const prompts_1 = require("@inquirer/prompts");
|
|
49
50
|
const chalk_1 = __importDefault(require("chalk"));
|
|
50
51
|
const ora_1 = __importDefault(require("ora"));
|
|
@@ -53,7 +54,7 @@ const API_BASE = process.env.FLOWSTRIDE_API_URL || "https://cloud.flowstride.io"
|
|
|
53
54
|
program
|
|
54
55
|
.name("flowstride")
|
|
55
56
|
.description("Flowstride: The Enterprise Flow-First Automation CLI")
|
|
56
|
-
.version("1.0.
|
|
57
|
+
.version("1.0.11");
|
|
57
58
|
program
|
|
58
59
|
.command("init")
|
|
59
60
|
.description("Initialise a new Flowstride workspace in the current directory")
|
|
@@ -154,6 +155,11 @@ program
|
|
|
154
155
|
cwd: nodeModulesPath,
|
|
155
156
|
strip: 1,
|
|
156
157
|
});
|
|
158
|
+
installSpinner.text = "Wiring up Enterprise dependencies...";
|
|
159
|
+
(0, child_process_1.execSync)("npm install --omit=dev", {
|
|
160
|
+
cwd: nodeModulesPath,
|
|
161
|
+
stdio: "ignore",
|
|
162
|
+
});
|
|
157
163
|
installSpinner.succeed(chalk_1.default.green("Enterprise Engine installed successfully!"));
|
|
158
164
|
}
|
|
159
165
|
catch (installError) {
|
|
@@ -317,7 +323,6 @@ program
|
|
|
317
323
|
console.error(`Flowstride requires all UI tests to be inside a valid directory.`);
|
|
318
324
|
process.exit(1);
|
|
319
325
|
}
|
|
320
|
-
// Inject our DRM state into options before passing to runner
|
|
321
326
|
options.forceOS = forceOS;
|
|
322
327
|
await (0, run_1.runAction)(strictUiFlowsDir, options);
|
|
323
328
|
});
|
|
@@ -325,7 +330,7 @@ async function handleOfflinePrompt() {
|
|
|
325
330
|
console.log(chalk_1.default.yellow("🛜 OFFLINE: Unable to reach Flowstride Cloud. Enterprise Sync paused."));
|
|
326
331
|
if (process.env.CI || process.env.FLOWSTRIDE_API_KEY) {
|
|
327
332
|
console.log(chalk_1.default.yellow("⚠️ CI/CD Environment: Automatically falling back to OS Engine."));
|
|
328
|
-
return true;
|
|
333
|
+
return true;
|
|
329
334
|
}
|
|
330
335
|
const runAnyway = await (0, prompts_1.confirm)({
|
|
331
336
|
message: "⚠️ Execute a local OS run anyway? (Pro features are disabled on OS)",
|
|
@@ -334,7 +339,7 @@ async function handleOfflinePrompt() {
|
|
|
334
339
|
if (!runAnyway) {
|
|
335
340
|
process.exit(0);
|
|
336
341
|
}
|
|
337
|
-
return true;
|
|
342
|
+
return true;
|
|
338
343
|
}
|
|
339
344
|
program
|
|
340
345
|
.command("report")
|