@ai-qa/workflow 2.0.6 → 2.0.7

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 (3) hide show
  1. package/cli.js +5 -14
  2. package/install.js +1 -1
  3. package/package.json +1 -1
package/cli.js CHANGED
@@ -1,16 +1,7 @@
1
- const { execSync } = require("child_process");
2
- const path = require("path");
3
- const os = require("os");
1
+ #!/usr/bin/env node
4
2
 
5
- function getLatestTemplate() {
6
- const tmpDir = path.join(os.tmpdir(), "ai-qa-workflow-latest");
3
+ const path = require('path');
7
4
 
8
- console.log("📦 Fetching latest AI QA template...");
9
-
10
- execSync(
11
- `npx --yes @ai-qa/workflow@latest --extract-template ${tmpDir}`,
12
- { stdio: "inherit" }
13
- );
14
-
15
- return tmpDir;
16
- }
5
+ // Forward to install.js with --self flag so it installs into cwd
6
+ process.argv.push('--self');
7
+ require(path.join(__dirname, 'install.js'));
package/install.js CHANGED
@@ -4,7 +4,7 @@ const fs = require('fs');
4
4
  const path = require('path');
5
5
  const { execSync } = require('child_process');
6
6
 
7
- const TEMPLATE_DIR = getLatestTemplate();
7
+ const TEMPLATE_DIR = __dirname;
8
8
  const YES = process.argv.includes('--yes') || process.argv.includes('-y');
9
9
  const IS_UPDATE = process.argv.includes('--update') || process.argv.includes('-u');
10
10
  const IS_SELF = process.argv.includes('--self') || process.argv.includes('-s');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-qa/workflow",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "One-command AI QA Pipeline — User Story to Test Report. Auto-detects project config, generates Playwright tests, self-heals failures, dashboard UI.",
5
5
  "keywords": [
6
6
  "qa",