@soleur/opencode 3.354.22 → 3.354.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soleur/opencode",
3
- "version": "3.354.22",
3
+ "version": "3.354.23",
4
4
  "description": "Soleur AI organization plugin for OpenCode",
5
5
  "type": "module",
6
6
  "bin": {
@@ -85,10 +85,10 @@ selftest_instrument() {
85
85
  }
86
86
  selftest_instrument || { printf '[FATAL] instrument self-test: pass, fail and check did not each move their counters as expected\n' >&2; exit 1; }
87
87
 
88
- # --- preconditions: a missing scanner is RED, a missing python3 is a visible SKIP ---
88
+ # --- preconditions: a missing scanner is RED, a missing python3 is UNRESOLVED ---
89
89
  if ! command -v python3 >/dev/null 2>&1; then
90
- printf 'SKIP scan suite: python3 not found (the scan needs python3; nothing was asserted)\n'
91
- exit 0
90
+ printf 'UNRESOLVED: python3 missing — this suite asserted nothing; install python3\n'
91
+ exit 3
92
92
  fi
93
93
  if [[ ! -f "$SCAN" ]]; then
94
94
  printf '[FATAL] scanner missing at %s\n' "$SCAN" >&2
@@ -119,14 +119,9 @@ fi
119
119
  # python3: ONLY the test uses it (the independent RFC 5849 percent-encoder of the OAuth oracle); the
120
120
  # scripts under test never do, and the hosted runner image has none.
121
121
  for dep in jq openssl python3; do
122
- if ! command -v "$dep" >/dev/null 2>&1; then
123
- if [[ -n "${CI:-}" ]]; then
124
- echo "FAIL: $dep is required in CI but not found" >&2
125
- exit 1
126
- fi
127
- echo "SKIP: $dep not installed"
128
- exit 0
129
- fi
122
+ # #8773: a missing tool is UNRESOLVED (exit 3) in every environment — honest
123
+ # both locally and under CI, so the old local-SKIP/CI-FAIL split is gone.
124
+ command -v "$dep" >/dev/null 2>&1 || { echo "UNRESOLVED: $dep missing — this suite asserted nothing; install $dep"; exit 3; }
130
125
  done
131
126
 
132
127
  SANDBOX="$(mktemp -d -t community-argv.XXXXXXXX)" || { echo "FAIL: mktemp" >&2; exit 1; }
@@ -37,7 +37,7 @@ FAIL=0
37
37
  pass() { echo " PASS: $1"; PASS=$((PASS + 1)); }
38
38
  fail() { echo " FAIL: $1"; FAIL=$((FAIL + 1)); }
39
39
 
40
- command -v jq >/dev/null 2>&1 || { echo "SKIP: jq missing"; exit 0; }
40
+ command -v jq >/dev/null 2>&1 || { echo "UNRESOLVED: jq missing — this suite asserted nothing; install jq"; exit 3; }
41
41
  [[ -f "$TARGET" ]] || { echo "ERROR: target not found: $TARGET" >&2; exit 1; }
42
42
 
43
43
  WORK="$(mktemp -d)"
@@ -38,12 +38,11 @@ TMP=$(mktemp -d)
38
38
  trap 'rm -rf "$TMP"' EXIT
39
39
 
40
40
  # GNU coreutils preflight — the sweep + this test use GNU `stat -c%Y` and
41
- # `touch -d '<rel>'` (Linux/CI ubuntu target). Skip cleanly on a non-GNU host
42
- # (e.g. BSD/macOS dev box) instead of hard-erroring at plant() with a confusing
43
- # "invalid date format".
41
+ # `touch -d '<rel>'` (Linux/CI ubuntu target). A host that cannot measure is
42
+ # UNRESOLVED (exit 3), never a green SKIP — the suite asserted nothing (#8773).
44
43
  if ! stat -c%Y "$TMP" >/dev/null 2>&1 || ! touch -d '1 second ago' "$TMP/.probe" 2>/dev/null; then
45
- echo "SKIP: GNU coreutils (stat -c / touch -d relative) required — non-GNU host"
46
- exit 0
44
+ echo "UNRESOLVED: GNU coreutils missing (stat -c%Y / touch -d relative unsupported) — non-GNU host; this suite asserted nothing"
45
+ exit 3
47
46
  fi
48
47
  rm -f "$TMP/.probe"
49
48
 
@@ -42,7 +42,7 @@ FAIL=0
42
42
  pass() { echo " PASS: $1"; PASS=$((PASS + 1)); }
43
43
  fail() { echo " FAIL: $1"; FAIL=$((FAIL + 1)); }
44
44
 
45
- command -v jq >/dev/null 2>&1 || { echo "SKIP: jq missing"; exit 0; }
45
+ command -v jq >/dev/null 2>&1 || { echo "UNRESOLVED: jq missing — this suite asserted nothing; install jq"; exit 3; }
46
46
  [[ -f "$CHECK_FS" ]] || { echo "ERROR: not found: $CHECK_FS" >&2; exit 1; }
47
47
 
48
48
  WORK="$(mktemp -d)"