@lesliechan721/aw 0.1.0-beta.17 → 0.1.0-beta.18

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.
@@ -4333,7 +4333,7 @@ export function ConsoleAppV4(props) {
4333
4333
  : undefined,
4334
4334
  };
4335
4335
  if (action.id === 'reinstall')
4336
- return { label: placement?.state === 'installed' && placement.health === 'incomplete' ? '重新连接缺失内容…' : '重新安装…', description: '保留现有设置并重新生成受管内容', run: () => beginReview({ kind: 'pluginWrite', action: 'reinstall', pluginId: plugin.pluginId, platform: action.platform, scope: action.scope }) };
4336
+ return { label: '重新安装…', description: '保留现有设置并重新生成受管内容', run: () => beginReview({ kind: 'pluginWrite', action: 'reinstall', pluginId: plugin.pluginId, platform: action.platform, scope: action.scope }) };
4337
4337
  if (action.id === 'remove')
4338
4338
  return { label: `从${scopeLabel(action.scope)}移除…`, description: '保留插件设置', status: 'error', run: () => beginPluginRemoval(plugin, action.platform, action.scope) };
4339
4339
  if (action.id === 'cleanup')
@@ -4447,8 +4447,11 @@ export function ConsoleAppV4(props) {
4447
4447
  content = _jsxs(Box, { flexDirection: "column", children: [_jsx(DiagnosticSummary, { diagnostic: diagnostic, compact: policy.mode === 'compact' }), _jsx(SemanticRows, { actions: actions, focus: effectiveFocus, kind: "action", compact: policy.mode === 'compact' })] });
4448
4448
  }
4449
4449
  else if (placement.health === 'incomplete') {
4450
- title = `${platformLabel(route.platform)} ${placement.health === 'incomplete' ? '安装不完整' : '暂时不可用'}`;
4451
- description = '缺少一项必要内容,插件可能无法稳定启动。';
4450
+ const issue = props.controller.listUserIssues().find((candidate) => candidate.pluginId === plugin.pluginId
4451
+ && candidate.platform === route.platform
4452
+ && candidate.scope === placement.scope);
4453
+ title = issue?.title ?? `${platformLabel(route.platform)} 状态待同步`;
4454
+ description = issue?.explanation ?? '现场状态与期望状态不一致,需要重新检查并同步。';
4452
4455
  actions = platformActions();
4453
4456
  const actualTitle = placement.actualState === 'needsSync' ? '需要同步'
4454
4457
  : placement.actualState === 'blocked' ? '当前有安全阻断' : '需要处理';