@lesliechan721/aw 0.1.0-beta.29 → 0.1.0-beta.30
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/tui/components.d.ts +41 -3
- package/dist/src/tui/components.js +70 -3
- package/dist/src/tui/components.js.map +1 -1
- package/dist/src/tui/console-app-v4.d.ts +1 -1
- package/dist/src/tui/console-app-v4.js +990 -376
- package/dist/src/tui/console-app-v4.js.map +1 -1
- package/dist/src/tui/controller.d.ts +4 -1
- package/dist/src/tui/controller.js +24 -3
- package/dist/src/tui/controller.js.map +1 -1
- package/dist/src/tui/operation-review-planner.js +68 -2
- package/dist/src/tui/operation-review-planner.js.map +1 -1
- package/dist/src/tui/router.d.ts +5 -0
- package/dist/src/tui/router.js +85 -1
- package/dist/src/tui/router.js.map +1 -1
- package/dist/src/tui/screen-registry.d.ts +14 -4
- package/dist/src/tui/screen-registry.js +7 -1
- package/dist/src/tui/screen-registry.js.map +1 -1
- package/package.json +3 -3
|
@@ -659,7 +659,7 @@ export interface ProjectIntentReminder {
|
|
|
659
659
|
signature: string;
|
|
660
660
|
actionableTargets: ProjectIntentReminderTarget[];
|
|
661
661
|
blockedTargets: ProjectIntentReminderTarget[];
|
|
662
|
-
unconfirmedTargets:
|
|
662
|
+
unconfirmedTargets: ProjectIntentReminderTarget[];
|
|
663
663
|
}
|
|
664
664
|
export declare function projectCurrentIntentReminder(status: TuiStatusLoadResult): ProjectIntentReminder | undefined;
|
|
665
665
|
export interface InstallTargetOption {
|
|
@@ -768,6 +768,7 @@ export interface TuiControllerSnapshot {
|
|
|
768
768
|
operationRecordId?: string;
|
|
769
769
|
};
|
|
770
770
|
projectIntentReminder?: ProjectIntentReminder;
|
|
771
|
+
projectDeclarationAbsent?: boolean;
|
|
771
772
|
projectIntentIssue?: {
|
|
772
773
|
state: 'invalid' | 'unavailable';
|
|
773
774
|
code: string;
|
|
@@ -844,6 +845,8 @@ export declare class TuiController {
|
|
|
844
845
|
startForceCleanupReview(candidate: ForceCleanupCandidate): ReviewPreparationSnapshot;
|
|
845
846
|
configOrigin(pluginId: string): TuiRoute | undefined;
|
|
846
847
|
updatePageContext(context: Partial<TuiPageContext>): void;
|
|
848
|
+
returnToConfigOverview(flowId: string | undefined, overviewFrameId: string | undefined, pluginId: string, context?: TuiPageContext): boolean;
|
|
849
|
+
configOverviewFrameId(flowId: string | undefined, pluginId: string): string | undefined;
|
|
847
850
|
back(): void;
|
|
848
851
|
discardSourceDraft(owner: string, returnRoute: Extract<TuiRoute, {
|
|
849
852
|
name: 'sourceList' | 'sourceDetail';
|
|
@@ -147,7 +147,7 @@ export function projectCurrentIntentReminder(status) {
|
|
|
147
147
|
actionableTargets.push({ ...reminderTarget, reasonCodes });
|
|
148
148
|
}
|
|
149
149
|
else {
|
|
150
|
-
unconfirmedTargets.push(reminderTarget);
|
|
150
|
+
unconfirmedTargets.push({ ...reminderTarget, reasonCodes });
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
if (projectTargets.length === 0)
|
|
@@ -844,6 +844,7 @@ export class TuiController {
|
|
|
844
844
|
...(this.#projectIntentReminder
|
|
845
845
|
? { projectIntentReminder: this.#projectIntentReminder }
|
|
846
846
|
: {}),
|
|
847
|
+
...(this.#status?.projectIntent?.state === 'absent' ? { projectDeclarationAbsent: true } : {}),
|
|
847
848
|
...(this.#status?.projectIntent?.state === 'invalid'
|
|
848
849
|
|| this.#status?.projectIntent?.state === 'unavailable'
|
|
849
850
|
? { projectIntentIssue: this.#status.projectIntent }
|
|
@@ -1850,7 +1851,15 @@ export class TuiController {
|
|
|
1850
1851
|
this.#portableRepreparePluginId = current.pluginId;
|
|
1851
1852
|
}
|
|
1852
1853
|
this.#discardPortableDraftForRoute(route);
|
|
1853
|
-
|
|
1854
|
+
const nextRoute = route.name === 'pluginPreview' ? this.#normalizeRoute(route) : route;
|
|
1855
|
+
const preserveConfigOverview = current.name === 'configFields'
|
|
1856
|
+
&& route.name === 'configUnavailable'
|
|
1857
|
+
&& route.pluginId === current.pluginId
|
|
1858
|
+
&& this.#router.activeFlow()?.kind === 'configEdit';
|
|
1859
|
+
if (preserveConfigOverview)
|
|
1860
|
+
this.#router.push(nextRoute, context);
|
|
1861
|
+
else
|
|
1862
|
+
this.#router.replace(nextRoute, context);
|
|
1854
1863
|
this.#publish();
|
|
1855
1864
|
}
|
|
1856
1865
|
beginConfigFlow(pluginId) {
|
|
@@ -1958,6 +1967,17 @@ export class TuiController {
|
|
|
1958
1967
|
this.#router.updateContext(context);
|
|
1959
1968
|
this.#publish();
|
|
1960
1969
|
}
|
|
1970
|
+
returnToConfigOverview(flowId, overviewFrameId, pluginId, context) {
|
|
1971
|
+
const returned = this.#router.returnToConfigOverview(flowId, overviewFrameId, pluginId, context);
|
|
1972
|
+
if (!returned)
|
|
1973
|
+
return false;
|
|
1974
|
+
this.#normalizeCurrentRoute();
|
|
1975
|
+
this.#publish();
|
|
1976
|
+
return true;
|
|
1977
|
+
}
|
|
1978
|
+
configOverviewFrameId(flowId, pluginId) {
|
|
1979
|
+
return this.#router.configOverviewFrameId(flowId, pluginId);
|
|
1980
|
+
}
|
|
1961
1981
|
back() {
|
|
1962
1982
|
const route = this.#router.snapshot.current.route;
|
|
1963
1983
|
if (route.name === 'result')
|
|
@@ -3182,7 +3202,8 @@ export class TuiController {
|
|
|
3182
3202
|
? `${evidence.requestedPluginIds.length} 个插件`
|
|
3183
3203
|
: intent.kind === 'pluginWriteTask'
|
|
3184
3204
|
? `${evidence.taskPlan.requestedTargets.length} 个安装位置`
|
|
3185
|
-
: 'Catalog
|
|
3205
|
+
: intent.kind === 'catalogStorePrune' ? 'Catalog 本地存储'
|
|
3206
|
+
: 'Catalog 来源配置';
|
|
3186
3207
|
if ('pluginId' in intent)
|
|
3187
3208
|
sourceIdFromPluginId(intent.pluginId);
|
|
3188
3209
|
const pluginVersion = 'pluginId' in intent
|