@flowspec-qa/runner 0.2.4 → 0.4.0

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.
Files changed (49) hide show
  1. package/dist/commands/capture.d.ts +22 -0
  2. package/dist/commands/capture.d.ts.map +1 -0
  3. package/dist/commands/capture.js +110 -0
  4. package/dist/commands/capture.js.map +1 -0
  5. package/dist/commands/discover.d.ts.map +1 -1
  6. package/dist/commands/discover.js +403 -37
  7. package/dist/commands/discover.js.map +1 -1
  8. package/dist/commands/generate.d.ts +3 -0
  9. package/dist/commands/generate.d.ts.map +1 -0
  10. package/dist/commands/generate.js +63 -0
  11. package/dist/commands/generate.js.map +1 -0
  12. package/dist/commands/ingest.d.ts.map +1 -1
  13. package/dist/commands/ingest.js +9 -1
  14. package/dist/commands/ingest.js.map +1 -1
  15. package/dist/commands/mcp-server.d.ts.map +1 -1
  16. package/dist/commands/mcp-server.js +2 -1
  17. package/dist/commands/mcp-server.js.map +1 -1
  18. package/dist/commands/projects.d.ts.map +1 -1
  19. package/dist/commands/projects.js +34 -0
  20. package/dist/commands/projects.js.map +1 -1
  21. package/dist/commands/record.d.ts +13 -0
  22. package/dist/commands/record.d.ts.map +1 -0
  23. package/dist/commands/record.js +90 -0
  24. package/dist/commands/record.js.map +1 -0
  25. package/dist/commands/report.d.ts +3 -0
  26. package/dist/commands/report.d.ts.map +1 -0
  27. package/dist/commands/report.js +40 -0
  28. package/dist/commands/report.js.map +1 -0
  29. package/dist/commands/run.d.ts.map +1 -1
  30. package/dist/commands/run.js +110 -32
  31. package/dist/commands/run.js.map +1 -1
  32. package/dist/index.js +11 -1
  33. package/dist/index.js.map +1 -1
  34. package/package.json +9 -5
  35. package/.maestro.env +0 -20
  36. package/src/commands/auth.ts +0 -65
  37. package/src/commands/devices.ts +0 -76
  38. package/src/commands/discover.ts +0 -84
  39. package/src/commands/doctor.ts +0 -134
  40. package/src/commands/heal.ts +0 -53
  41. package/src/commands/ingest.ts +0 -56
  42. package/src/commands/mcp-server.ts +0 -140
  43. package/src/commands/projects.ts +0 -31
  44. package/src/commands/results.ts +0 -34
  45. package/src/commands/run.ts +0 -225
  46. package/src/commands/suites.ts +0 -41
  47. package/src/index.ts +0 -34
  48. package/test_simple.yaml +0 -3
  49. package/tsconfig.json +0 -8
@@ -1,41 +0,0 @@
1
- import { Command } from 'commander';
2
- import chalk from 'chalk';
3
- import ora from 'ora';
4
- import { table } from 'table';
5
- import { FlowSpecQAApi } from '@flowspec-qa/runner-core';
6
-
7
- export function suitesCommand(): Command {
8
- const cmd = new Command('suites').description('Manage test suites');
9
-
10
- cmd
11
- .command('list')
12
- .description('List available suites from FlowSpecQA')
13
- .option('-e, --entity <entityId>', 'Filter by entity ID (e.g. HU-012)')
14
- .action(async (opts) => {
15
- const spinner = ora('Fetching suites...').start();
16
- try {
17
- const suites = await FlowSpecQAApi.listSuites(opts.entity);
18
- spinner.stop();
19
- if (suites.length === 0) {
20
- console.log(chalk.yellow('No suites found. Generate automation code in FlowSpecQA first.'));
21
- return;
22
- }
23
- const rows = [
24
- [chalk.bold('Entity'), chalk.bold('Status'), chalk.bold('Mode'), chalk.bold('Suite ID')],
25
- ...suites.map((s: any) => [
26
- chalk.cyan(s.entity_id),
27
- chalk.green(s.status ?? '—'),
28
- chalk.magenta(s.mode ?? '—'),
29
- chalk.dim(s.suite_id),
30
- ]),
31
- ];
32
- console.log(table(rows));
33
- console.log(chalk.dim(`Use 'flowspecqa run --suite <suite_id> --env <env>' to execute.`));
34
- } catch (err: any) {
35
- spinner.fail(chalk.red(`✗ ${err.message}`));
36
- process.exit(1);
37
- }
38
- });
39
-
40
- return cmd;
41
- }
package/src/index.ts DELETED
@@ -1,34 +0,0 @@
1
- #!/usr/bin/env node
2
- import { Command } from 'commander';
3
- import { authCommand } from './commands/auth.js';
4
- import { projectsCommand } from './commands/projects.js';
5
- import { suitesCommand } from './commands/suites.js';
6
- import { runCommand } from './commands/run.js';
7
- import { resultsCommand } from './commands/results.js';
8
- import { mcpServerCommand } from './commands/mcp-server.js';
9
- import { doctorCommand } from './commands/doctor.js';
10
- import { healCommand } from './commands/heal.js';
11
- import { discoverCommand } from './commands/discover.js';
12
- import { ingestCommand } from './commands/ingest.js';
13
- import { devicesCommand } from './commands/devices.js';
14
-
15
- const program = new Command();
16
-
17
- program
18
- .name('flowspecqa')
19
- .description('FlowSpecQA Runner — download, execute, and upload test suites')
20
- .version('0.1.0');
21
-
22
- program.addCommand(authCommand());
23
- program.addCommand(projectsCommand());
24
- program.addCommand(suitesCommand());
25
- program.addCommand(runCommand());
26
- program.addCommand(resultsCommand());
27
- program.addCommand(mcpServerCommand());
28
- program.addCommand(doctorCommand());
29
- program.addCommand(healCommand());
30
- program.addCommand(discoverCommand());
31
- program.addCommand(ingestCommand());
32
- program.addCommand(devicesCommand());
33
-
34
- program.parse(process.argv);
package/test_simple.yaml DELETED
@@ -1,3 +0,0 @@
1
- appId: host.exp.Exponent
2
- ---
3
- - launchApp
package/tsconfig.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "rootDir": "src",
5
- "outDir": "dist"
6
- },
7
- "include": ["src/**/*"]
8
- }