@lesliechan721/aw 0.1.0-beta.82 → 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.
- package/dist/src/commands/rebuild-platform-integration.d.ts +1 -0
- package/dist/src/commands/rebuild-platform-integration.js +11 -4
- package/dist/src/commands/rebuild-platform-integration.js.map +1 -1
- package/dist/src/recovery/coordinator.d.ts +3 -1
- package/dist/src/recovery/coordinator.js +55 -15
- package/dist/src/recovery/coordinator.js.map +1 -1
- package/dist/src/recovery/joint-coordinator.js +11 -1
- package/dist/src/recovery/joint-coordinator.js.map +1 -1
- package/dist/src/tui/catalog-generation.d.ts +6 -0
- package/dist/src/tui/catalog-generation.js +22 -6
- package/dist/src/tui/catalog-generation.js.map +1 -1
- package/dist/src/tui/console-app-v4.js +2 -2
- package/dist/src/tui/console-app-v4.js.map +1 -1
- package/dist/src/tui/controller-runtime.js +100 -44
- package/dist/src/tui/controller-runtime.js.map +1 -1
- package/dist/src/tui/controller.js +8 -0
- package/dist/src/tui/controller.js.map +1 -1
- package/dist/src/tui/glossary.js +1 -0
- package/dist/src/tui/glossary.js.map +1 -1
- package/dist/src/utils/catalog-generation-resolver.d.ts +1 -0
- package/dist/src/utils/catalog-generation-resolver.js +1 -0
- package/dist/src/utils/catalog-generation-resolver.js.map +1 -1
- package/dist/src/utils/catalog-operation-context.d.ts +11 -0
- package/dist/src/utils/catalog-operation-context.js +18 -3
- package/dist/src/utils/catalog-operation-context.js.map +1 -1
- 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();
|