docs(coding-agent): align resolveUpdateTarget docstring with symlink-gated manager probes

This commit is contained in:
can1357
2026-08-19 01:32:16 +02:00
parent b4db9c84e7
commit 2b35d690b0
+5 -3
View File
@@ -657,9 +657,11 @@ export function resolveUpdateTargetFromPath(
/**
* Resolve how the running install should be updated.
*
* `allowPackageManagers: false` skips the `bun pm bin -g` / `npm prefix -g`
* probes entirely — used for binary-only releases, where routing through a
* package manager is never valid and the probes would be wasted subprocesses.
* `allowPackageManagers: false` disables bun/npm routing — used for
* binary-only releases, where reinstalling through a package manager is never
* valid. The `bun pm bin -g` / `npm prefix -g` probes are then skipped unless
* the launcher is a symlink, whose bin dirs distinguish a manager launcher
* (taken over in place) from a foreign symlink (resolved to its real binary).
* Homebrew/mise detection always runs: both managers install GitHub release
* binaries and stay valid regardless of how the release is distributed.
*/