@lesliechan721/aw 0.1.0-beta.93 → 0.1.0-beta.94

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 (77) hide show
  1. package/dist/src/commands/deployment-confirmation.js +13 -0
  2. package/dist/src/commands/deployment-confirmation.js.map +1 -1
  3. package/dist/src/commands/offline-cleanup-evidence.d.ts +1 -1
  4. package/dist/src/commands/offline-cleanup-evidence.js +30 -31
  5. package/dist/src/commands/offline-cleanup-evidence.js.map +1 -1
  6. package/dist/src/commands/operation-plan.d.ts +5 -0
  7. package/dist/src/commands/operation-plan.js +2 -0
  8. package/dist/src/commands/operation-plan.js.map +1 -1
  9. package/dist/src/commands/public-lifecycle-result.js +16 -0
  10. package/dist/src/commands/public-lifecycle-result.js.map +1 -1
  11. package/dist/src/commands/public-lifecycle.js +3 -1
  12. package/dist/src/commands/public-lifecycle.js.map +1 -1
  13. package/dist/src/commands/rebuild-command.d.ts +9 -16
  14. package/dist/src/commands/rebuild-command.js +149 -92
  15. package/dist/src/commands/rebuild-command.js.map +1 -1
  16. package/dist/src/commands/rebuild-integration.d.ts +1 -0
  17. package/dist/src/commands/rebuild-integration.js.map +1 -1
  18. package/dist/src/commands/rebuild-platform-integration.d.ts +1 -0
  19. package/dist/src/commands/rebuild-platform-integration.js +26 -15
  20. package/dist/src/commands/rebuild-platform-integration.js.map +1 -1
  21. package/dist/src/commands/status-v6.js +7 -4
  22. package/dist/src/commands/status-v6.js.map +1 -1
  23. package/dist/src/platforms/contracts.d.ts +23 -1
  24. package/dist/src/platforms/discovery.d.ts +2 -0
  25. package/dist/src/platforms/discovery.js.map +1 -1
  26. package/dist/src/platforms/inspection-native.d.ts +4 -2
  27. package/dist/src/platforms/inspection-native.js +228 -24
  28. package/dist/src/platforms/inspection-native.js.map +1 -1
  29. package/dist/src/platforms/layout.js +15 -0
  30. package/dist/src/platforms/layout.js.map +1 -1
  31. package/dist/src/platforms/lifecycle-native-services.js +68 -2
  32. package/dist/src/platforms/lifecycle-native-services.js.map +1 -1
  33. package/dist/src/platforms/lifecycle-native.js +12 -1
  34. package/dist/src/platforms/lifecycle-native.js.map +1 -1
  35. package/dist/src/platforms/lifecycle.d.ts +3 -1
  36. package/dist/src/platforms/lifecycle.js +133 -12
  37. package/dist/src/platforms/lifecycle.js.map +1 -1
  38. package/dist/src/platforms/retirement-native.d.ts +6 -0
  39. package/dist/src/platforms/retirement-native.js +95 -0
  40. package/dist/src/platforms/retirement-native.js.map +1 -0
  41. package/dist/src/recovery/receipt.d.ts +2 -0
  42. package/dist/src/recovery/receipt.js.map +1 -1
  43. package/dist/src/recovery/retirement.js +58 -22
  44. package/dist/src/recovery/retirement.js.map +1 -1
  45. package/dist/src/recovery/status.js +12 -2
  46. package/dist/src/recovery/status.js.map +1 -1
  47. package/dist/src/tui/catalog-generation.d.ts +4 -1
  48. package/dist/src/tui/catalog-generation.js +34 -0
  49. package/dist/src/tui/catalog-generation.js.map +1 -1
  50. package/dist/src/tui/console-app-v4.js +50 -13
  51. package/dist/src/tui/console-app-v4.js.map +1 -1
  52. package/dist/src/tui/controller-runtime.js +16 -8
  53. package/dist/src/tui/controller-runtime.js.map +1 -1
  54. package/dist/src/tui/controller.d.ts +2 -1
  55. package/dist/src/tui/controller.js +14 -5
  56. package/dist/src/tui/controller.js.map +1 -1
  57. package/dist/src/tui/deployment-view.d.ts +1 -0
  58. package/dist/src/tui/deployment-view.js +21 -3
  59. package/dist/src/tui/deployment-view.js.map +1 -1
  60. package/dist/src/tui/entity-cards.js +7 -1
  61. package/dist/src/tui/entity-cards.js.map +1 -1
  62. package/dist/src/tui/model.d.ts +6 -1
  63. package/dist/src/tui/model.js +18 -5
  64. package/dist/src/tui/model.js.map +1 -1
  65. package/dist/src/tui/scoped-inventory.d.ts +9 -1
  66. package/dist/src/tui/scoped-inventory.js +16 -1
  67. package/dist/src/tui/scoped-inventory.js.map +1 -1
  68. package/dist/src/utils/catalog-source-references.d.ts +37 -1
  69. package/dist/src/utils/catalog-source-references.js +361 -94
  70. package/dist/src/utils/catalog-source-references.js.map +1 -1
  71. package/dist/src/utils/codex-config.d.ts +3 -0
  72. package/dist/src/utils/codex-config.js +7 -0
  73. package/dist/src/utils/codex-config.js.map +1 -1
  74. package/dist/src/utils/local-marketplace.d.ts +2 -0
  75. package/dist/src/utils/local-marketplace.js +12 -0
  76. package/dist/src/utils/local-marketplace.js.map +1 -1
  77. package/package.json +3 -3
@@ -25,7 +25,7 @@ import type { RecoveryReceipt } from '../recovery/receipt.js';
25
25
  import type { RecoveryCommand } from '../recovery/coordinator.js';
26
26
  import type { AgentId } from '../intent/deployment-preferences.js';
27
27
  import { type ConfigInvalidStoreEvidence, type ConfigRouteLayer, type PluginInstallFilter, type PortableBlockerCode, type TuiPageContext, type TuiRoute, type TuiRouterSnapshot } from './router.js';
28
- import { type CatalogSourceGenerationViewModel } from './catalog-generation.js';
28
+ import { type CatalogSourceGenerationViewModel, type RetirementSourceChecks } from './catalog-generation.js';
29
29
  import type { CatalogSourceFreshnessViewModel } from './catalog-freshness.js';
30
30
  import type { CatalogSessionReusableCandidate } from './catalog-sources/types.js';
31
31
  import type { CatalogStoreStatusResult } from '../commands/catalog-store.js';
@@ -689,6 +689,7 @@ export interface PluginOperationProgressLine {
689
689
  }
690
690
  export interface TuiStatusLoadResult {
691
691
  scopedRecovery?: Partial<Record<Scope, ScopedInventoryLoadResult>>;
692
+ retirementSourceChecks?: RetirementSourceChecks;
692
693
  projectRoot?: string;
693
694
  cliChannel?: 'latest' | 'beta';
694
695
  payload: StatusV8Payload;
@@ -20,7 +20,7 @@ import { projectComponentDelivery } from '../output/component-delivery.js';
20
20
  import { OperationHistoryStore, } from './operation-history.js';
21
21
  import { targetHasArtifactCollision } from '../utils/target-eligibility.js';
22
22
  import { hasStatusInstallationEvidence } from './scoped-inventory.js';
23
- import { buildScopedInventory } from './scoped-inventory.js';
23
+ import { buildScopedInventory, inventoryPluginIds } from './scoped-inventory.js';
24
24
  import { guidedSkipWarning } from './guided-setup.js';
25
25
  import { projectScopedRecoveryHistory } from './scoped-flow.js';
26
26
  import { TuiRouter, } from './router.js';
@@ -1186,6 +1186,8 @@ export class TuiController {
1186
1186
  && (target.providerScope === undefined || target.providerScope === target.scope)),
1187
1187
  ]),
1188
1188
  retainedNativePluginIds,
1189
+ residualPluginIds: Object.values(this.#status.scopedRecovery ?? {}).flatMap(inventoryPluginIds),
1190
+ retirementSourceChecks: this.#status.retirementSourceChecks,
1189
1191
  sourceHealth: this.#health,
1190
1192
  sourceDetails: this.#status.sourceDetails,
1191
1193
  catalogFreshness: this.#catalogFreshness,
@@ -1210,8 +1212,11 @@ export class TuiController {
1210
1212
  }
1211
1213
  this.#scopedInventories[scope] = buildScopedInventory({
1212
1214
  recovery,
1215
+ retirementSourceChecks: this.#status.retirementSourceChecks,
1213
1216
  status: this.#status.payload,
1214
- pluginSummaries: this.#viewModel.plugins,
1217
+ pluginSummaries: this.#status.pluginSummaries,
1218
+ sourceHealth: this.#health,
1219
+ catalogGenerations: this.#catalogGenerations,
1215
1220
  targetRevisions: this.#status.targetRevisions,
1216
1221
  dependencyOverviews: recovery.dependencyOverviews ?? this.#status.dependencyOverviews,
1217
1222
  ...(scope === 'project' && this.#status.projectRoot
@@ -1511,11 +1516,11 @@ export class TuiController {
1511
1516
  }
1512
1517
  this.#health.clear();
1513
1518
  for (const source of status.payload.catalog.sources) {
1519
+ const unavailable = source.error !== undefined || source.errorCode !== undefined;
1514
1520
  this.#health.set(source.id, {
1515
1521
  sourceId: source.id,
1516
- state: source.error ? 'unavailable'
1517
- : 'ready',
1518
- ...(source.error ? { message: '来源当前没有可用数据。' } : {}),
1522
+ state: unavailable ? 'unavailable' : 'ready',
1523
+ ...(unavailable ? { message: '来源当前没有可用数据。' } : {}),
1519
1524
  });
1520
1525
  if (!this.#catalogFreshness.has(source.id)) {
1521
1526
  this.#catalogFreshness.set(source.id, { sourceId: source.id, state: 'notChecked' });
@@ -1617,8 +1622,12 @@ export class TuiController {
1617
1622
  const recovery = await this.#trackRead(this.dependencies.loadScopedStatus(scope, this.#abort.signal));
1618
1623
  if (this.#disposed || generation !== this.#generation || token !== this.#scopedRefreshToken[scope])
1619
1624
  return false;
1625
+ this.#status.retirementSourceChecks = { ...this.#status.retirementSourceChecks, ...recovery.retirementSourceChecks };
1620
1626
  const inventory = buildScopedInventory({
1621
1627
  recovery, status: { ...this.#status.payload, targets: [] }, pluginSummaries: this.#status.pluginSummaries,
1628
+ retirementSourceChecks: this.#status.retirementSourceChecks,
1629
+ sourceHealth: this.#health,
1630
+ catalogGenerations: this.#catalogGenerations,
1622
1631
  dependencyOverviews: recovery.dependencyOverviews ?? this.#status.dependencyOverviews,
1623
1632
  ...(scope === 'project' && this.#status.projectRoot ? { projectRoot: this.#status.projectRoot } : {}),
1624
1633
  });