Files
ruflo/v3/@claude-flow/cli/src
Dragan Spiridonov e0f2e83a33 fix(plugins): apply the #3557 trust policy on plugins upgrade
PluginManager.upgrade copied the new version's claude-flow hooks and
commands straight into the manifest, so hooks withheld at install were
registered on upgrade, and an upgrade to a version declaring elevated
permissions was never gated. It also kept running npm lifecycle scripts
for any install recorded with scriptsRun:true (including legacy entries),
even though that flag can come from unverified registry vouching.

- Re-run applyTrustPolicy on the upgraded package.json; record trust,
  permissions, withheld hooks/commands and verification like install does.
- Install the new version with --ignore-scripts unless --trust is passed for
  this upgrade; the original install's trust is not carried over.
- `plugins upgrade` gains --verify/--no-verify and --trust, and reports
  skipped scripts and withheld hooks.
2026-10-09 20:07:35 +02:00
..
…
2026-01-14 18:48:53 +00:00