@meridiona/meridian-darwin-arm64 1.20.0 → 1.20.1

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/VERSION CHANGED
@@ -1 +1 @@
1
- 1.20.0
1
+ 1.20.1
package/bin/meridian CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meridiona/meridian-darwin-arm64",
3
- "version": "1.20.0",
3
+ "version": "1.20.1",
4
4
  "description": "Prebuilt Meridian app for macOS arm64 (daemon binary + dashboard + Python services). Installed via @meridiona/meridian.",
5
5
  "homepage": "https://github.com/Meridiona/meridian",
6
6
  "repository": {
@@ -252,16 +252,31 @@ fi
252
252
  mkdir -p "${HOME}/.local/bin"
253
253
  ln -sfn "${APP_ROOT}/bin/meridian" "${HOME}/.local/bin/meridian-daemon"
254
254
  # Do NOT shadow the npm launcher with a second `meridian` on PATH. When installed
255
- # via npm, /usr/local/bin/meridian (the launcher) owns `setup`/`update` and
256
- # delegates start/stop/doctor to this bundle's CLI by its real path. ~/.local/bin
257
- # usually precedes /usr/local/bin on PATH, so a ~/.local/bin/meridian symlink
258
- # would hide `meridian setup` / `meridian update` (it can't reach the launcher).
255
+ # via npm, the launcher (`meridian.js`) owns `setup`/`update` and delegates
256
+ # start/stop/doctor to this bundle's CLI by its real path. ~/.local/bin usually
257
+ # precedes the npm bin dir on PATH, so a ~/.local/bin/meridian symlink would hide
258
+ # `meridian setup` / `meridian update` (it can't reach the launcher).
259
+ #
260
+ # The launcher's location depends on the npm prefix: /usr/local/bin on a default
261
+ # prefix, but ~/.npm-global/bin when the EACCES bootstrap redirected the prefix to
262
+ # a user-writable dir. Resolve the prefix from npm rather than assuming
263
+ # /usr/local — otherwise the launcher is missed and the CLI shadow hides `update`.
259
264
  # Only create the CLI symlink as a fallback when no launcher is present (e.g. a
260
265
  # standalone bundle install); when the launcher exists, remove any stale shadow
261
266
  # so `meridian update` self-heals an install made by an older bundle.
262
- if [[ -e /usr/local/bin/meridian ]]; then
267
+ _launcher=""
268
+ _npm_prefix="$(npm config get prefix 2>/dev/null || true)"
269
+ for _cand in "/usr/local/bin/meridian" ${_npm_prefix:+"${_npm_prefix}/bin/meridian"}; do
270
+ [[ -e "${_cand}" ]] || continue
271
+ # Distinguish the launcher (node shim) from a self-referential CLI symlink:
272
+ # the launcher never resolves to meridian-cli.sh.
273
+ if [[ "$(readlink "${_cand}" 2>/dev/null || echo "${_cand}")" != *meridian-cli.sh ]]; then
274
+ _launcher="${_cand}"; break
275
+ fi
276
+ done
277
+ if [[ -n "${_launcher}" ]]; then
263
278
  rm -f "${HOME}/.local/bin/meridian"
264
- ok "meridian-daemon → ~/.local/bin (meridian CLI = npm launcher at /usr/local/bin/meridian)"
279
+ ok "meridian-daemon → ~/.local/bin (meridian CLI = npm launcher at ${_launcher})"
265
280
  else
266
281
  ln -sfn "${APP_ROOT}/scripts/meridian-cli.sh" "${HOME}/.local/bin/meridian"
267
282
  ok "meridian-daemon + meridian → ~/.local/bin"
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "meridian-agents"
7
- version = "1.20.0"
7
+ version = "1.20.1"
8
8
  description = "Meridian agents — hermes task linking and Jira progress updates for meridian.db"
9
9
  requires-python = ">=3.11"
10
10
  authors = [{ name = "Meridiona" }]
package/ui.tar.gz CHANGED
Binary file