shoud-cli 3.0.3 → 3.0.5

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/bin/shoud.js CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ const pkg = require('../package.json');
2
3
  const { program } = require('commander');
3
4
  const chalk = require('chalk');
4
5
  const path = require('path');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shoud-cli",
3
- "version": "3.0.3",
3
+ "version": "3.0.5",
4
4
  "description": "SHOUD Terminal Agent: Give your computer a job.",
5
5
  "main": "bin/shoud.js",
6
6
  "bin": {
@@ -22,7 +22,7 @@ function delta(before, after) {
22
22
  function isImprovement(before, after) {
23
23
  // Heuristic: "pass", "0 errors", "✓" are good
24
24
  const good = /^(0|pass|passed|ok|✓|clean)/i.test(String(after));
25
- const bad = /^(fail|failed|error|✗|/i.test(String(before)) && /^\d+/.test(String(before));
25
+ const bad = /^(fail|failed|error|✗)/i.test(String(before)) && /^\d+/.test(String(before));
26
26
  return good || bad;
27
27
  }
28
28