qa 0.19.3 → 0.20.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 (2) hide show
  1. package/cli.cjs +4 -1
  2. package/package.json +8 -8
package/cli.cjs CHANGED
@@ -28,9 +28,11 @@ const ALL_TARGETS = [
28
28
  ];
29
29
  const DOCS_URL = "https://docs.momentic.ai/cli-reference/mo/overview";
30
30
 
31
+ /** @param {string} t */
31
32
  const binaryEntry = (t) =>
32
33
  `@momentic/qa-${t}/bin/${t.startsWith("windows") ? "qa.exe" : "qa"}`;
33
34
 
35
+ /** @param {string} entry */
34
36
  function tryResolve(entry) {
35
37
  try {
36
38
  return require.resolve(entry);
@@ -52,6 +54,7 @@ function detectPackageManager() {
52
54
  return match ? { name: match[1], major: Number(match[2]) } : null;
53
55
  }
54
56
 
57
+ /** @param {{ name: string; major: number } | null} pm */
55
58
  function repairCommand(pm) {
56
59
  switch (pm?.name) {
57
60
  case "pnpm":
@@ -117,7 +120,7 @@ function reportMissingBinary() {
117
120
  const repair = repairCommand(pm);
118
121
  console.error(
119
122
  `Reinstall qa with optional dependencies enabled: npm install --include=optional qa` +
120
- (repair ? ` — with ${pm.name}, run \`${repair}\`.` : "."),
123
+ (pm && repair ? ` — with ${pm.name}, run \`${repair}\`.` : "."),
121
124
  );
122
125
  console.error(`Supported platforms: ${ALL_TARGETS.join(", ")}.`);
123
126
  console.error(`See ${DOCS_URL} for supported platforms and install options.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qa",
3
- "version": "0.19.3",
3
+ "version": "0.20.0",
4
4
  "description": "The CLI for Mo, Momentic's autonomous QA agent.",
5
5
  "private": false,
6
6
  "bin": {
@@ -36,12 +36,12 @@
36
36
  "node": "^22.12.0 || >=24.0.0"
37
37
  },
38
38
  "optionalDependencies": {
39
- "@momentic/qa-darwin-arm64": "0.19.3",
40
- "@momentic/qa-darwin-x64": "0.19.3",
41
- "@momentic/qa-linux-arm64": "0.19.3",
42
- "@momentic/qa-linux-arm64-musl": "0.19.3",
43
- "@momentic/qa-linux-x64": "0.19.3",
44
- "@momentic/qa-linux-x64-musl": "0.19.3",
45
- "@momentic/qa-windows-x64": "0.19.3"
39
+ "@momentic/qa-darwin-arm64": "0.20.0",
40
+ "@momentic/qa-darwin-x64": "0.20.0",
41
+ "@momentic/qa-linux-arm64": "0.20.0",
42
+ "@momentic/qa-linux-arm64-musl": "0.20.0",
43
+ "@momentic/qa-linux-x64": "0.20.0",
44
+ "@momentic/qa-linux-x64-musl": "0.20.0",
45
+ "@momentic/qa-windows-x64": "0.20.0"
46
46
  }
47
47
  }