@chrono-meta/fh-gate 1.4.3 → 1.4.4
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 +1 -1
- package/scripts/fh-gate.sh +5 -2
package/package.json
CHANGED
package/scripts/fh-gate.sh
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# fh-gate.sh — FH governance gate
|
|
2
|
+
# fh-gate.sh — FH governance gate (version read from package.json at runtime)
|
|
3
3
|
#
|
|
4
4
|
# Executes governance review end-to-end via a selectable AI backend.
|
|
5
5
|
# CI-ready: machine-parseable verdict + exit codes.
|
|
@@ -28,8 +28,11 @@
|
|
|
28
28
|
|
|
29
29
|
set -euo pipefail
|
|
30
30
|
|
|
31
|
-
VERSION="1.2.0"
|
|
32
31
|
FH_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
32
|
+
# Single source of truth: read version from the package.json shipped alongside this script.
|
|
33
|
+
# No jq dependency (users may not have it); fall back to "unknown" if unreadable.
|
|
34
|
+
VERSION="$(sed -n 's/.*"version"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' "$FH_ROOT/package.json" 2>/dev/null | head -1)"
|
|
35
|
+
VERSION="${VERSION:-unknown}"
|
|
33
36
|
CALLER_CWD="$(pwd -P)"
|
|
34
37
|
_TMPDIR="${TMPDIR:-/tmp}"
|
|
35
38
|
|