@lesliechan721/aw 0.1.0-beta.81 → 0.1.0-beta.83

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 (75) hide show
  1. package/dist/src/commands/intent-command.d.ts +2 -1
  2. package/dist/src/commands/intent-command.js +3 -4
  3. package/dist/src/commands/intent-command.js.map +1 -1
  4. package/dist/src/commands/public-lifecycle-result.js +4 -0
  5. package/dist/src/commands/public-lifecycle-result.js.map +1 -1
  6. package/dist/src/commands/public-lifecycle.js +1 -1
  7. package/dist/src/commands/public-lifecycle.js.map +1 -1
  8. package/dist/src/commands/rebuild-command.d.ts +2 -1
  9. package/dist/src/commands/rebuild-command.js +22 -13
  10. package/dist/src/commands/rebuild-command.js.map +1 -1
  11. package/dist/src/commands/rebuild-integration.d.ts +2 -0
  12. package/dist/src/commands/rebuild-integration.js.map +1 -1
  13. package/dist/src/commands/rebuild-platform-integration.d.ts +2 -0
  14. package/dist/src/commands/rebuild-platform-integration.js +63 -9
  15. package/dist/src/commands/rebuild-platform-integration.js.map +1 -1
  16. package/dist/src/platforms/discovery.d.ts +4 -3
  17. package/dist/src/platforms/discovery.js +33 -9
  18. package/dist/src/platforms/discovery.js.map +1 -1
  19. package/dist/src/platforms/inspection-native.js +15 -4
  20. package/dist/src/platforms/inspection-native.js.map +1 -1
  21. package/dist/src/platforms/inspection-query.d.ts +12 -1
  22. package/dist/src/platforms/inspection-query.js +24 -6
  23. package/dist/src/platforms/inspection-query.js.map +1 -1
  24. package/dist/src/portable/commands.d.ts +2 -2
  25. package/dist/src/portable/commands.js +7 -3
  26. package/dist/src/portable/commands.js.map +1 -1
  27. package/dist/src/portable/materializer.d.ts +2 -1
  28. package/dist/src/portable/materializer.js +4 -4
  29. package/dist/src/portable/materializer.js.map +1 -1
  30. package/dist/src/portable/recovery.d.ts +3 -3
  31. package/dist/src/portable/recovery.js +7 -7
  32. package/dist/src/portable/recovery.js.map +1 -1
  33. package/dist/src/recovery/coordinator.d.ts +13 -2
  34. package/dist/src/recovery/coordinator.js +67 -24
  35. package/dist/src/recovery/coordinator.js.map +1 -1
  36. package/dist/src/recovery/demand.d.ts +3 -1
  37. package/dist/src/recovery/demand.js +36 -6
  38. package/dist/src/recovery/demand.js.map +1 -1
  39. package/dist/src/recovery/joint-coordinator.d.ts +8 -1
  40. package/dist/src/recovery/joint-coordinator.js +120 -26
  41. package/dist/src/recovery/joint-coordinator.js.map +1 -1
  42. package/dist/src/recovery/joint-demand.d.ts +2 -0
  43. package/dist/src/recovery/joint-demand.js +46 -9
  44. package/dist/src/recovery/joint-demand.js.map +1 -1
  45. package/dist/src/recovery/status.d.ts +4 -0
  46. package/dist/src/recovery/status.js +37 -19
  47. package/dist/src/recovery/status.js.map +1 -1
  48. package/dist/src/tui/catalog-generation.d.ts +6 -0
  49. package/dist/src/tui/catalog-generation.js +22 -6
  50. package/dist/src/tui/catalog-generation.js.map +1 -1
  51. package/dist/src/tui/console-app-v4.js +2 -2
  52. package/dist/src/tui/console-app-v4.js.map +1 -1
  53. package/dist/src/tui/controller-runtime.js +100 -44
  54. package/dist/src/tui/controller-runtime.js.map +1 -1
  55. package/dist/src/tui/controller.js +8 -0
  56. package/dist/src/tui/controller.js.map +1 -1
  57. package/dist/src/tui/glossary.js +1 -0
  58. package/dist/src/tui/glossary.js.map +1 -1
  59. package/dist/src/utils/catalog-generation-resolver.d.ts +5 -0
  60. package/dist/src/utils/catalog-generation-resolver.js +29 -17
  61. package/dist/src/utils/catalog-generation-resolver.js.map +1 -1
  62. package/dist/src/utils/catalog-generation-store.d.ts +3 -0
  63. package/dist/src/utils/catalog-generation-store.js +7 -4
  64. package/dist/src/utils/catalog-generation-store.js.map +1 -1
  65. package/dist/src/utils/catalog-operation-context.d.ts +27 -3
  66. package/dist/src/utils/catalog-operation-context.js +73 -3
  67. package/dist/src/utils/catalog-operation-context.js.map +1 -1
  68. package/dist/src/utils/catalog-snapshot.d.ts +3 -0
  69. package/dist/src/utils/catalog-snapshot.js +4 -1
  70. package/dist/src/utils/catalog-snapshot.js.map +1 -1
  71. package/dist/src/utils/codex-executable-discovery.js +8 -8
  72. package/dist/src/utils/codex-executable-discovery.js.map +1 -1
  73. package/dist/src/utils/native-cli.js +36 -9
  74. package/dist/src/utils/native-cli.js.map +1 -1
  75. package/package.json +3 -3
@@ -1542,6 +1542,8 @@ export class TuiController {
1542
1542
  this.#pluginContentInflight.clear();
1543
1543
  this.#phase = 'loading';
1544
1544
  this.#publish();
1545
+ if (!this.#operationIsCurrent(generation))
1546
+ return;
1545
1547
  let status;
1546
1548
  try {
1547
1549
  status = await this.#trackRead(this.dependencies.loadStatus(this.#abort.signal));
@@ -1551,6 +1553,8 @@ export class TuiController {
1551
1553
  return;
1552
1554
  const code = issueCode(error);
1553
1555
  await this.#logErrorSafe(error, code);
1556
+ if (!this.#operationIsCurrent(generation))
1557
+ return;
1554
1558
  this.#phase = 'error';
1555
1559
  this.#loadError = { code, message: '无法安全读取插件状态。请检查诊断后重试或退出。' };
1556
1560
  this.#recordStandaloneFailure(code, 'statusReload', error);
@@ -3081,6 +3085,8 @@ export class TuiController {
3081
3085
  const generation = ++this.#generation;
3082
3086
  this.#phase = 'loading';
3083
3087
  this.#publish();
3088
+ if (!this.#operationIsCurrent(generation))
3089
+ return false;
3084
3090
  try {
3085
3091
  const status = await this.#trackRead(this.dependencies.loadStatus(this.#abort.signal));
3086
3092
  if (this.#disposed || generation !== this.#generation)
@@ -3097,6 +3103,8 @@ export class TuiController {
3097
3103
  return false;
3098
3104
  const code = issueCode(error);
3099
3105
  await this.#logErrorSafe(error, code);
3106
+ if (!this.#operationIsCurrent(generation))
3107
+ return false;
3100
3108
  this.#phase = 'error';
3101
3109
  this.#loadError = { code, message: '无法安全重新加载 Catalog。请检查诊断后重试。' };
3102
3110
  this.#publish();