@lesliechan721/aw 0.1.0-beta.17 → 0.1.0-beta.18

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.
@@ -148,10 +148,7 @@ function selectCodexActivationPlans(plans, targetScopes, preservedActivations) {
148
148
  : []));
149
149
  if (pluginIds.size === 0)
150
150
  return [];
151
- const includesActivationAction = (action) => includesScope(action.pluginId, action.scope)
152
- || !(action.scope === plan.requirement.scope
153
- ? plan.managedInventory.desired
154
- : plan.managedInventory.related.desired).includes(action.codexPluginId);
151
+ const includesActivationAction = (action) => includesScope(action.pluginId, action.scope) || !action.desired;
155
152
  const sharedNativeActions = plan.sharedNativeActions.filter((action) => pluginIds.has(action.pluginId));
156
153
  const userActions = plan.activationActions.user.filter((action) => pluginIds.has(action.pluginId) && includesActivationAction(action));
157
154
  const projectActions = plan.activationActions.project.filter((action) => pluginIds.has(action.pluginId) && includesActivationAction(action));
@@ -283,7 +280,9 @@ function deriveDesiredIntentState(options) {
283
280
  if (options.command === 'install') {
284
281
  for (const root of options.selectedRoots)
285
282
  next = mergePluginIntentRootPlatforms(next, root);
286
- next = updateIntentOverrides({ state: next, plan: options.plan });
283
+ if (options.selectedRoots.length > 0) {
284
+ next = updateIntentOverrides({ state: next, plan: options.plan });
285
+ }
287
286
  }
288
287
  else if (options.command === 'uninstall' || options.command === 'cleanup') {
289
288
  for (const root of options.selectedRoots)