@svayam-opensource/prj 0.5.4 → 0.5.6

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/prj CHANGED
@@ -3,8 +3,18 @@
3
3
  # Resolves the workspace (the governance repo) and execs the bundled `prj`.
4
4
  # The CLI code ships in this package; org data lives in the workspace.
5
5
  set -euo pipefail
6
- HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
7
- PKG="$(cd "$HERE/.." && pwd)" # package root: <...>/node_modules/@svayam/prj
6
+ # Resolve this script's real path — npm installs `bin/prj` as a SYMLINK in the
7
+ # global bin dir, so BASH_SOURCE[0] is the symlink, not the package file. Follow
8
+ # the chain (portable: macOS BSD readlink + Linux) so PKG is the actual package
9
+ # dir, not the npm prefix.
10
+ src="${BASH_SOURCE[0]}"
11
+ while [[ -h "$src" ]]; do
12
+ dir="$(cd -P "$(dirname "$src")" && pwd)"
13
+ src="$(readlink "$src")"
14
+ [[ "$src" != /* ]] && src="$dir/$src"
15
+ done
16
+ HERE="$(cd -P "$(dirname "$src")" && pwd)"
17
+ PKG="$(cd "$HERE/.." && pwd)" # package root: <...>/node_modules/@svayam-opensource/prj
8
18
  # Discover the workspace: explicit env, else nearest ancestor with org-config.yaml.
9
19
  if [[ -z "${ADF_WORKSPACE:-}" ]]; then
10
20
  d="$PWD"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@svayam-opensource/prj",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
4
4
  "description": "Governed Agentic Development Framework CLI (prj). A bash CLI wrapped for npm; operates on a governance workspace resolved via $ADF_WORKSPACE or the nearest org-config.yaml. Runtime prerequisites (not npm deps): bash, git, gh, yq, python3 (use Git Bash on Windows).",
5
5
  "bin": {
6
6
  "prj": "bin/prj"
@@ -33,8 +33,8 @@ _README_PIN_RE = re.compile(
33
33
  )
34
34
 
35
35
 
36
- def check_version_sync(repo_root: Path) -> list[str]:
37
- errors: list[str] = []
36
+ def check_version_sync(repo_root):
37
+ errors = []
38
38
 
39
39
  pkg_path = repo_root / "package.json"
40
40
  if not pkg_path.exists():