@lesliechan721/aw 0.1.0-beta.84 → 0.1.0-beta.85

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.
Files changed (189) hide show
  1. package/dist/index.js +2 -6
  2. package/dist/index.js.map +1 -1
  3. package/dist/src/commands/public-lifecycle-result.d.ts +3 -8
  4. package/dist/src/commands/public-lifecycle-result.js +85 -30
  5. package/dist/src/commands/public-lifecycle-result.js.map +1 -1
  6. package/dist/src/commands/public-plugin-query.js +21 -5
  7. package/dist/src/commands/public-plugin-query.js.map +1 -1
  8. package/dist/src/commands/rebuild-command.js +19 -3
  9. package/dist/src/commands/rebuild-command.js.map +1 -1
  10. package/dist/src/commands/rebuild-integration.d.ts +1 -0
  11. package/dist/src/commands/rebuild-integration.js +5 -0
  12. package/dist/src/commands/rebuild-integration.js.map +1 -1
  13. package/dist/src/commands/rebuild-operations.js +5 -2
  14. package/dist/src/commands/rebuild-operations.js.map +1 -1
  15. package/dist/src/commands/rebuild-platform-integration.d.ts +7 -2
  16. package/dist/src/commands/rebuild-platform-integration.js +539 -65
  17. package/dist/src/commands/rebuild-platform-integration.js.map +1 -1
  18. package/dist/src/generators/permissions.d.ts +7 -1
  19. package/dist/src/generators/permissions.js +56 -0
  20. package/dist/src/generators/permissions.js.map +1 -1
  21. package/dist/src/index.d.ts +1 -0
  22. package/dist/src/index.js +7 -4
  23. package/dist/src/index.js.map +1 -1
  24. package/dist/src/intent/scope-context.d.ts +4 -2
  25. package/dist/src/intent/scope-context.js +37 -7
  26. package/dist/src/intent/scope-context.js.map +1 -1
  27. package/dist/src/output/component-delivery.d.ts +21 -0
  28. package/dist/src/output/component-delivery.js +82 -0
  29. package/dist/src/output/component-delivery.js.map +1 -0
  30. package/dist/src/output/public-result.d.ts +2 -0
  31. package/dist/src/output/public-result.js +49 -16
  32. package/dist/src/output/public-result.js.map +1 -1
  33. package/dist/src/output/receipt-projection.js +13 -5
  34. package/dist/src/output/receipt-projection.js.map +1 -1
  35. package/dist/src/output/skill-invocation-notices.d.ts +2 -0
  36. package/dist/src/output/skill-invocation-notices.js +40 -4
  37. package/dist/src/output/skill-invocation-notices.js.map +1 -1
  38. package/dist/src/platforms/capabilities.d.ts +4 -1
  39. package/dist/src/platforms/capabilities.js +93 -9
  40. package/dist/src/platforms/capabilities.js.map +1 -1
  41. package/dist/src/platforms/contracts.d.ts +36 -1
  42. package/dist/src/platforms/discovery.d.ts +11 -0
  43. package/dist/src/platforms/discovery.js +170 -30
  44. package/dist/src/platforms/discovery.js.map +1 -1
  45. package/dist/src/platforms/inspection-grok.js +121 -9
  46. package/dist/src/platforms/inspection-grok.js.map +1 -1
  47. package/dist/src/platforms/inspection-native.js +53 -18
  48. package/dist/src/platforms/inspection-native.js.map +1 -1
  49. package/dist/src/platforms/inspection-pi.d.ts +7 -1
  50. package/dist/src/platforms/inspection-pi.js +295 -95
  51. package/dist/src/platforms/inspection-pi.js.map +1 -1
  52. package/dist/src/platforms/inspection-query.d.ts +4 -2
  53. package/dist/src/platforms/inspection-query.js +24 -8
  54. package/dist/src/platforms/inspection-query.js.map +1 -1
  55. package/dist/src/platforms/inspection.d.ts +4 -1
  56. package/dist/src/platforms/inspection.js +36 -4
  57. package/dist/src/platforms/inspection.js.map +1 -1
  58. package/dist/src/platforms/layout.d.ts +6 -0
  59. package/dist/src/platforms/layout.js +44 -7
  60. package/dist/src/platforms/layout.js.map +1 -1
  61. package/dist/src/platforms/lifecycle-native.d.ts +1 -0
  62. package/dist/src/platforms/lifecycle-native.js +25 -1
  63. package/dist/src/platforms/lifecycle-native.js.map +1 -1
  64. package/dist/src/platforms/lifecycle.d.ts +2 -0
  65. package/dist/src/platforms/lifecycle.js +67 -16
  66. package/dist/src/platforms/lifecycle.js.map +1 -1
  67. package/dist/src/platforms/projection-code-extension.js +2 -1
  68. package/dist/src/platforms/projection-code-extension.js.map +1 -1
  69. package/dist/src/platforms/projection.js +70 -22
  70. package/dist/src/platforms/projection.js.map +1 -1
  71. package/dist/src/platforms/supplement-layout.d.ts +5 -1
  72. package/dist/src/platforms/supplement-layout.js +23 -1
  73. package/dist/src/platforms/supplement-layout.js.map +1 -1
  74. package/dist/src/platforms/supplement-state.d.ts +1 -1
  75. package/dist/src/platforms/supplement-state.js +18 -7
  76. package/dist/src/platforms/supplement-state.js.map +1 -1
  77. package/dist/src/portable/commands.js +1 -1
  78. package/dist/src/portable/commands.js.map +1 -1
  79. package/dist/src/portable/materializer.d.ts +4 -0
  80. package/dist/src/portable/materializer.js +8 -1
  81. package/dist/src/portable/materializer.js.map +1 -1
  82. package/dist/src/portable/recovery.d.ts +2 -0
  83. package/dist/src/portable/recovery.js +45 -8
  84. package/dist/src/portable/recovery.js.map +1 -1
  85. package/dist/src/recovery/coordinator.d.ts +1 -1
  86. package/dist/src/recovery/coordinator.js +77 -10
  87. package/dist/src/recovery/coordinator.js.map +1 -1
  88. package/dist/src/recovery/install-concurrency.js +3 -2
  89. package/dist/src/recovery/install-concurrency.js.map +1 -1
  90. package/dist/src/recovery/joint-coordinator.d.ts +7 -0
  91. package/dist/src/recovery/joint-coordinator.js +173 -23
  92. package/dist/src/recovery/joint-coordinator.js.map +1 -1
  93. package/dist/src/recovery/joint-demand.d.ts +14 -2
  94. package/dist/src/recovery/joint-demand.js +54 -7
  95. package/dist/src/recovery/joint-demand.js.map +1 -1
  96. package/dist/src/recovery/receipt.d.ts +15 -4
  97. package/dist/src/recovery/receipt.js +23 -0
  98. package/dist/src/recovery/receipt.js.map +1 -1
  99. package/dist/src/recovery/status.d.ts +20 -8
  100. package/dist/src/recovery/status.js +380 -90
  101. package/dist/src/recovery/status.js.map +1 -1
  102. package/dist/src/review/platform-profile.js +2 -1
  103. package/dist/src/review/platform-profile.js.map +1 -1
  104. package/dist/src/review/skill-materialization.d.ts +1 -0
  105. package/dist/src/review/skill-materialization.js +45 -39
  106. package/dist/src/review/skill-materialization.js.map +1 -1
  107. package/dist/src/review/source-binding.js +5 -1
  108. package/dist/src/review/source-binding.js.map +1 -1
  109. package/dist/src/tui/console-app-v4.js +67 -30
  110. package/dist/src/tui/console-app-v4.js.map +1 -1
  111. package/dist/src/tui/controller-runtime.js +1 -1
  112. package/dist/src/tui/controller-runtime.js.map +1 -1
  113. package/dist/src/tui/controller.d.ts +2 -1
  114. package/dist/src/tui/controller.js +17 -4
  115. package/dist/src/tui/controller.js.map +1 -1
  116. package/dist/src/tui/deployment-view.d.ts +6 -3
  117. package/dist/src/tui/deployment-view.js +39 -10
  118. package/dist/src/tui/deployment-view.js.map +1 -1
  119. package/dist/src/tui/diagnostic-projection.d.ts +7 -1
  120. package/dist/src/tui/diagnostic-projection.js +47 -2
  121. package/dist/src/tui/diagnostic-projection.js.map +1 -1
  122. package/dist/src/tui/entity-cards.d.ts +2 -1
  123. package/dist/src/tui/entity-cards.js +34 -11
  124. package/dist/src/tui/entity-cards.js.map +1 -1
  125. package/dist/src/tui/glossary.js +5 -0
  126. package/dist/src/tui/glossary.js.map +1 -1
  127. package/dist/src/tui/model.js +2 -1
  128. package/dist/src/tui/model.js.map +1 -1
  129. package/dist/src/tui/operation-diagnostic-screens.js +3 -1
  130. package/dist/src/tui/operation-diagnostic-screens.js.map +1 -1
  131. package/dist/src/tui/operation-history.d.ts +6 -0
  132. package/dist/src/tui/operation-history.js +20 -2
  133. package/dist/src/tui/operation-history.js.map +1 -1
  134. package/dist/src/tui/plugin-detail.d.ts +4 -1
  135. package/dist/src/tui/plugin-detail.js +9 -2
  136. package/dist/src/tui/plugin-detail.js.map +1 -1
  137. package/dist/src/tui/scoped-flow.js +34 -16
  138. package/dist/src/tui/scoped-flow.js.map +1 -1
  139. package/dist/src/tui/scoped-inventory.d.ts +6 -2
  140. package/dist/src/tui/scoped-inventory.js +29 -7
  141. package/dist/src/tui/scoped-inventory.js.map +1 -1
  142. package/dist/src/types.d.ts +2 -1
  143. package/dist/src/types.js.map +1 -1
  144. package/dist/src/utils/artifact-plan.js +5 -1
  145. package/dist/src/utils/artifact-plan.js.map +1 -1
  146. package/dist/src/utils/artifact-renderer.d.ts +1 -1
  147. package/dist/src/utils/artifact-renderer.js +29 -8
  148. package/dist/src/utils/artifact-renderer.js.map +1 -1
  149. package/dist/src/utils/catalog-source-references.js +12 -3
  150. package/dist/src/utils/catalog-source-references.js.map +1 -1
  151. package/dist/src/utils/codex-native-observation.d.ts +6 -0
  152. package/dist/src/utils/codex-native-observation.js +32 -3
  153. package/dist/src/utils/codex-native-observation.js.map +1 -1
  154. package/dist/src/utils/component-command-preparation.d.ts +2 -0
  155. package/dist/src/utils/component-command-preparation.js +23 -4
  156. package/dist/src/utils/component-command-preparation.js.map +1 -1
  157. package/dist/src/utils/component-gap.d.ts +4 -0
  158. package/dist/src/utils/component-gap.js +20 -0
  159. package/dist/src/utils/component-gap.js.map +1 -0
  160. package/dist/src/utils/component-resources.js +2 -4
  161. package/dist/src/utils/component-resources.js.map +1 -1
  162. package/dist/src/utils/dynamic-skill-tree.js +2 -32
  163. package/dist/src/utils/dynamic-skill-tree.js.map +1 -1
  164. package/dist/src/utils/native-cli-interruption.d.ts +8 -0
  165. package/dist/src/utils/native-cli-interruption.js +65 -0
  166. package/dist/src/utils/native-cli-interruption.js.map +1 -0
  167. package/dist/src/utils/native-cli.d.ts +5 -0
  168. package/dist/src/utils/native-cli.js +166 -53
  169. package/dist/src/utils/native-cli.js.map +1 -1
  170. package/dist/src/utils/ownership.d.ts +1 -0
  171. package/dist/src/utils/ownership.js +17 -3
  172. package/dist/src/utils/ownership.js.map +1 -1
  173. package/dist/src/utils/package-content.d.ts +7 -0
  174. package/dist/src/utils/package-content.js +70 -0
  175. package/dist/src/utils/package-content.js.map +1 -0
  176. package/dist/src/utils/platform-empty-state.d.ts +31 -6
  177. package/dist/src/utils/platform-empty-state.js +135 -65
  178. package/dist/src/utils/platform-empty-state.js.map +1 -1
  179. package/dist/src/utils/plugin-config-write.js +5 -1
  180. package/dist/src/utils/plugin-config-write.js.map +1 -1
  181. package/dist/src/utils/plugin-scripts.js +19 -8
  182. package/dist/src/utils/plugin-scripts.js.map +1 -1
  183. package/dist/src/utils/process-tree.d.ts +1 -1
  184. package/dist/src/utils/process-tree.js +1 -1
  185. package/dist/src/utils/process-tree.js.map +1 -1
  186. package/dist/src/utils/skill-invocation-warning.d.ts +8 -3
  187. package/dist/src/utils/skill-invocation-warning.js +27 -1
  188. package/dist/src/utils/skill-invocation-warning.js.map +1 -1
  189. package/package.json +3 -3
@@ -1,5 +1,6 @@
1
1
  import { describeNativeToolClosure } from '../utils/native-tool-review.js';
2
2
  import path from 'node:path';
3
+ import { isDeliveryCapabilityGap } from '../utils/component-gap.js';
3
4
  import { CatalogSourceInventoryIncompleteError } from '../utils/catalog-source-references.js';
4
5
  import { inventoryRecoveryDiagnostic } from '../utils/inventory-recovery-diagnostic.js';
5
6
  import { getCommandPackageId } from '@lesliechan721/aw-plugin-core/manifest';
@@ -25,6 +26,7 @@ import { selectAgents, writePreferences } from '../intent/deployment-preferences
25
26
  import { calculateIntentDigest } from '../intent/intent-codec.js';
26
27
  import { observeIntent } from '../intent/intent-store.js';
27
28
  import { assertNeutralAncestorChain, createScopeContext } from '../intent/scope-context.js';
29
+ import { retainedOutputDiagnostic, scopeNativeComponentGaps, uniqueRecoveryComponentGaps } from './receipt.js';
28
30
  import { prepareJointRecovery, executeJointRecovery } from './joint-coordinator.js';
29
31
  import { createEmptyNativeDemandView } from '../utils/native-demand.js';
30
32
  import { resolvePluginMetaDependencyClosure } from '../utils/plugin-dependencies.js';
@@ -236,8 +238,12 @@ function nativeResults(plan, group, result, executed) {
236
238
  ].filter((deployment) => deployment.binding.plugin.pluginId === pluginId
237
239
  && deployment.binding.platform === platform && deployment.binding.scope.kind === plan.options.scope)
238
240
  .map((deployment) => [deployment.binding.id, deployment]));
239
- if (deploymentPlans.size)
241
+ if (deploymentPlans.size) {
240
242
  target.deploymentPlans = [...deploymentPlans.values()];
243
+ const gaps = target.deploymentPlans.flatMap(({ expected, evidence }) => scopeNativeComponentGaps(expected.unmet, target, evidence.renderUnits));
244
+ if (gaps.length)
245
+ target.componentGaps = uniqueRecoveryComponentGaps(gaps);
246
+ }
241
247
  const exclusions = [
242
248
  ...(group.preview.deploymentExclusions ?? []),
243
249
  ...(result.deploymentExclusions ?? []),
@@ -350,6 +356,39 @@ function nativeResults(plan, group, result, executed) {
350
356
  target.observation = succeeded ? 'verified' : 'unknown';
351
357
  target.content = succeeded ? 'satisfied' : 'unknown';
352
358
  }
359
+ if (deployments.length && plan.command !== 'cleanup' && plan.command !== 'uninstall') {
360
+ const gaps = deployments.flatMap((entry) => scopeNativeComponentGaps(entry.unmet, target, deploymentPlans.get(entry.bindingId)?.evidence.renderUnits));
361
+ if (gaps.length)
362
+ target.componentGaps = uniqueRecoveryComponentGaps(gaps);
363
+ const installed = new Set(deployments.flatMap((entry) => {
364
+ const deployment = deploymentPlans.get(entry.bindingId);
365
+ if (!deployment)
366
+ return [];
367
+ const ids = new Set(deployment.expected.components.map(({ id }) => id));
368
+ if (!succeeded) {
369
+ const partial = new Set(deployment.effects.filter((effect) => (effect.kind === 'publish-package' || effect.kind === 'write-supplement')
370
+ && entry.effects.some((actual) => actual.id === effect.id && actual.status === 'applied' && actual.mutation === 'confirmed'))
371
+ .flatMap((effect) => effect.componentIds));
372
+ for (const id of ids)
373
+ if (!partial.has(id))
374
+ ids.delete(id);
375
+ }
376
+ for (const gap of entry.unmet)
377
+ if (!isDeliveryCapabilityGap(gap))
378
+ ids.delete(gap.componentId ?? gap.id);
379
+ return entry.after.components.filter(({ id, presence, reasonCodes }) => ids.has(id) && presence === 'present' && !reasonCodes.length).map(({ id }) => id);
380
+ }));
381
+ if (installed.size || succeeded && target.deploymentPlans?.every(({ expected }) => !expected.components.length)) {
382
+ target.installedComponentCount = installed.size;
383
+ target.installedComponentIds = [...installed];
384
+ }
385
+ if (succeeded && !target.blockers.length && gaps.every(isDeliveryCapabilityGap)) {
386
+ if (installed.size)
387
+ target.satisfaction = 'installed';
388
+ else if (gaps.length && target.deploymentPlans?.every(({ expected }) => !expected.components.length))
389
+ target.satisfaction = 'not-applicable';
390
+ }
391
+ }
353
392
  if (!succeeded && !target.blockers.length)
354
393
  block(target, 'nativeRecoveryFailed');
355
394
  }
@@ -377,12 +416,13 @@ function portableResults(plan, prepared) {
377
416
  const gaps = (prepared.unmet ?? []).filter((gap) => gap.agent === agent);
378
417
  if (gaps.length)
379
418
  target.componentGaps = gaps;
419
+ const blockingGap = gaps.some((gap) => !isDeliveryCapabilityGap(gap));
380
420
  target.content = observations.some((entry) => entry.observation === 'conflict') ? 'conflict'
381
421
  : observations.some((entry) => entry.observation === 'unknown') ? 'unknown'
382
422
  : observations.some((entry) => entry.observation === 'drifted') ? 'drifted'
383
423
  : observations.some((entry) => entry.observation === 'absent') ? 'absent'
384
- : observations.length || prepared.intentionalEmpty && gaps.length === 0 ? 'satisfied' : 'unknown';
385
- if (gaps.length && target.content !== 'conflict')
424
+ : observations.length || prepared.intentionalEmpty || gaps.length && !blockingGap && !prepared.blockers.length ? 'satisfied' : 'unknown';
425
+ if ((blockingGap || observations.some((entry) => entry.disposition === 'retain')) && target.content !== 'conflict')
386
426
  target.content = 'unknown';
387
427
  target.observation = target.content === 'satisfied' ? 'verified'
388
428
  : target.content === 'absent' ? 'missing' : 'unknown';
@@ -390,9 +430,15 @@ function portableResults(plan, prepared) {
390
430
  plan.changes.push(`组件未满足 · ${gap.providerPluginId} · ${gap.componentId ?? gap.id} · ${gap.reasonCode}`
391
431
  + gap.requiredFeatures.map((requirement) => ` · ${requirement.feature}${requirement.values ? `: ${requirement.values.join(', ')}` : ''}`).join(''));
392
432
  for (const code of [...prepared.globalBlockers, ...observations.flatMap((entry) => entry.blocker
393
- && !(entry.disposition === 'retain' && entry.blocker === 'portableComponentsUnmet') ? [entry.blocker] : [])]) {
433
+ && !(entry.disposition === 'retain' && entry.blocker === 'previousDeploymentRetained') ? [entry.blocker] : [])]) {
394
434
  block(target, code, portablePreparationDiagnostic(prepared, diagnostic(code), agent));
395
435
  }
436
+ const retained = observations.filter((entry) => entry.disposition === 'retain');
437
+ if (retained.length)
438
+ target.reasons = retained.map((entry) => retainedOutputDiagnostic(entry.providerPluginId, agent, target.scope, entry.physicalPath, `skill.${entry.skill}`));
439
+ const policyNotices = prepared.policyNotices?.filter((notice) => notice.subject?.target === agent);
440
+ if (policyNotices?.length)
441
+ (target.reasons ??= []).push(...policyNotices);
396
442
  target.backend = observations.map((entry) => ({ skill: entry.skill, providerPluginId: entry.providerPluginId,
397
443
  requiredBy: portableRequiredBy(plan, prepared, entry), observation: entry.observation,
398
444
  ownership: entry.ownership, associatedAgents: entry.associatedAgents }));
@@ -412,12 +458,13 @@ function portableOutcomes(plan, prepared, agent, outcomes, globalBlockers) {
412
458
  const gaps = (prepared.unmet ?? []).filter((gap) => gap.agent === agent);
413
459
  if (gaps.length)
414
460
  target.componentGaps = gaps;
415
- const intentionalEmpty = prepared.mode === 'deploy' && prepared.intentionalEmpty && gaps.length === 0 && prepared.blockers.length === 0
461
+ const blockingGap = gaps.some((gap) => !isDeliveryCapabilityGap(gap));
462
+ const completeEmpty = prepared.mode === 'deploy' && (prepared.intentionalEmpty || gaps.length > 0 && !blockingGap) && prepared.blockers.length === 0
416
463
  && globalBlockers.length === 0 && preparedTargets.every((entry) => entry.disposition === 'remove')
417
464
  && outcomes.length === preparedTargets.length
418
465
  && outcomes.every((entry) => entry.observation === 'absent' && entry.blockers.length === 0
419
466
  && ['applied', 'no-op'].includes(entry.execution));
420
- target.execution = (prepared.mode === 'cleanup' || intentionalEmpty) && outcomes.length === 0 && !globalBlockers.length ? 'no-op' : outcomes.length > 0 && outcomes.every((entry) => entry.execution === 'no-op') ? 'no-op'
467
+ target.execution = (prepared.mode === 'cleanup' || completeEmpty) && outcomes.length === 0 && !globalBlockers.length ? 'no-op' : outcomes.length > 0 && outcomes.every((entry) => entry.execution === 'no-op') ? 'no-op'
421
468
  : outcomes.length > 0 && outcomes.every((entry) => ['applied', 'no-op'].includes(entry.execution)) ? 'applied'
422
469
  : outcomes.some((entry) => ['applied', 'no-op'].includes(entry.execution)) ? 'partial'
423
470
  : outcomes.some((entry) => entry.execution === 'failed') ? 'failed' : 'not-run';
@@ -436,17 +483,34 @@ function portableOutcomes(plan, prepared, agent, outcomes, globalBlockers) {
436
483
  target.observation = 'missing';
437
484
  target.content = 'absent';
438
485
  }
439
- else if (intentionalEmpty) {
486
+ else if (completeEmpty) {
440
487
  target.observation = 'verified';
441
488
  target.content = 'satisfied';
442
489
  }
443
- if (gaps.length) {
490
+ if (prepared.mode === 'deploy') {
491
+ const installed = contentOutcomes.filter((entry) => entry.providerPluginId === target.pluginId
492
+ && entry.disposition === 'write' && entry.observation === 'satisfied' && !entry.blockers.length);
493
+ if (installed.length || !globalBlockers.length && contentOutcomes.every((entry) => entry.disposition === 'retain' || entry.observation === 'satisfied' || entry.observation === 'absent')) {
494
+ target.installedComponentCount = installed.length;
495
+ if (installed.every((entry) => entry.componentId))
496
+ target.installedComponentIds = installed.map((entry) => entry.componentId);
497
+ }
498
+ if (target.content === 'satisfied' && !blockingGap && !globalBlockers.length && outcomes.every((entry) => !entry.blockers.length)
499
+ && (target.execution === 'applied' || target.execution === 'no-op')) {
500
+ if (installed.length)
501
+ target.satisfaction = 'installed';
502
+ else if (gaps.some((gap) => gap.providerPluginId === target.pluginId))
503
+ target.satisfaction = 'not-applicable';
504
+ }
505
+ }
506
+ if (blockingGap || contentOutcomes.some((entry) => entry.disposition === 'retain')) {
444
507
  if (target.execution === 'applied' || target.execution === 'no-op')
445
508
  target.execution = 'partial';
446
509
  if (target.content !== 'conflict')
447
510
  target.content = 'unknown';
448
511
  target.observation = 'unknown';
449
- block(target, 'portableComponentsUnmet');
512
+ if (blockingGap)
513
+ block(target, 'portableComponentsUnmet');
450
514
  }
451
515
  target.backend = outcomes.map((entry) => ({ skill: entry.skill, providerPluginId: entry.providerPluginId,
452
516
  requiredBy: portableRequiredBy(plan, prepared, entry), observation: entry.observation,
@@ -465,7 +529,8 @@ function portablePluginClosure(plan, prepared) {
465
529
  .filter((plugin) => !prepared.options.excludedPluginIds?.includes(plugin.pluginId));
466
530
  }
467
531
  function isHealthyPortableProvider(group) {
468
- return !group.blockers.length && !group.unmet.length && (group.intentionalEmpty || group.targets.length > 0)
532
+ return !group.blockers.length && group.unmet.every(isDeliveryCapabilityGap)
533
+ && (group.intentionalEmpty || group.unmet.length > 0 || group.targets.length > 0)
469
534
  && group.targets.every((target) => target.disposition === 'write' && target.ownership === 'aw'
470
535
  && target.observation === 'satisfied' && target.installedDigest === target.expectedDigest);
471
536
  }
@@ -1482,6 +1547,8 @@ export function describeRecoveryPlan(plan) {
1482
1547
  });
1483
1548
  return { inputs: plan.joint?.evidence ?? [plan.originalIntent, plan.preferencesEvidence],
1484
1549
  catalog: plan.command === 'install' ? plan.demand.catalogOperationContext?.generationSetDigest : undefined,
1550
+ pendingUserSkills: plan.joint?.pendingUserSkills,
1551
+ providerRetirements: plan.joint ? [...plan.joint.providerRetirements] : undefined,
1485
1552
  command: plan.command, dependencyCleanupTargets: plan.dependencyCleanupTargets,
1486
1553
  declaration: plan.joint?.declaration, packages: plan.runtime.configApplyPackages ? { targets: plan.runtime.configApplyPackages.targets, evidence: plan.runtime.configApplyPackages.evidence } : undefined, blockers: plan.receipt.blockers,
1487
1554
  children: (plan.joint?.children ?? [plan]).map(describe) };