@mobius-os/mobius 0.3.72 → 0.3.74

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/install.ps1 CHANGED
@@ -6,10 +6,11 @@
6
6
  下载 portable Node win-x64 zip 解压到 ~/.mobius/node-portable/ → 用 node.exe 直跑 npm-cli.js
7
7
  装 @mobius-os/mobius 到 ~/.mobius/npm-global/ → 自建 mobius.cmd 启动器(绝对路径指向便携 node)
8
8
  → 加 ~/.mobius/bin 到用户 PATH (无需 admin)。
9
- npm 安装和 mobius 启动均直接使用 node.exe/tsx;安装完成后同时注册两个
10
- Explorer 右键入口:“在 Mobius 中打开”(文件夹本身 + 文件夹空白处)。
9
+ npm 安装和 mobius 启动均直接使用 node.exe/tsx;安装完成后在文件夹本身和
10
+ 文件夹空白处注册两个 Explorer 右键入口:“在Mobius终端中打开”与
11
+ “在Mobius终端中打开(管理员权限)”。
11
12
  .EXAMPLE
12
- irm https://serve.nutshellai.cn/publish/auto/mobiustui/install-v15.ps1 | iex
13
+ irm https://serve.nutshellai.cn/publish/auto/mobiustui/install-v16.ps1 | iex
13
14
  #>
14
15
  $ErrorActionPreference = 'Stop'
15
16
  $ProgressPreference = 'SilentlyContinue'
@@ -206,9 +207,10 @@ if ($userPath -notlike "*$binDir*") {
206
207
  }
207
208
 
208
209
  # --- 5. Explorer 右键菜单 (当前用户,无需 admin) ----------------------------
209
- # 两个入口必须同时注册:
210
+ # 两套入口,各注册两个位置:
210
211
  # Directory\shell\Mobius = 右键文件夹本身,目标参数 %1
211
212
  # Directory\Background\shell\Mobius = 右键文件夹空白处,目标参数 %V
213
+ # ...\MobiusAdmin = 同样的两处,UAC 提权后启动(管理员权限)
212
214
  # 使用 .cmd 辅助启动器,避免右键动作依赖 PowerShell ExecutionPolicy。
213
215
  $openHereCmd = Join-Path $binDir "mobius-open-here.cmd"
214
216
  $openHereLines = @(
@@ -222,38 +224,65 @@ $openHereLines = @(
222
224
  )
223
225
  Set-Content -Path $openHereCmd -Value $openHereLines -Encoding ASCII
224
226
 
227
+ # 管理员入口: Explorer 直接跑这个脚本, 由它用 UAC 提权拉起同一个启动器.
228
+ # -Encoding UTF8 在 Windows PowerShell 5.1 会写入 BOM, -File 才能正确读中文/引号.
229
+ $openHereAdminPs1 = Join-Path $binDir "mobius-open-here-admin.ps1"
230
+ $openHereAdminLines = @(
231
+ 'param([string]$Target)',
232
+ '# 右键文件夹时 Explorer 会传路径, 兜底用当前目录.',
233
+ 'if (-not $Target) { $Target = (Get-Location).Path }',
234
+ 'Start-Process -FilePath (Join-Path $PSScriptRoot ''mobius-open-here.cmd'') -ArgumentList (''"{0}"'' -f $Target) -Verb RunAs'
235
+ )
236
+ Set-Content -Path $openHereAdminPs1 -Value $openHereAdminLines -Encoding UTF8
237
+
225
238
  $classes = "HKCU:\Software\Classes"
226
239
  $folderMenu = Join-Path $classes "Directory\shell\Mobius"
227
240
  $folderCommand = Join-Path $folderMenu "command"
228
241
  $backgroundMenu = Join-Path $classes "Directory\Background\shell\Mobius"
229
242
  $backgroundCommand = Join-Path $backgroundMenu "command"
243
+ $folderAdminMenu = Join-Path $classes "Directory\shell\MobiusAdmin"
244
+ $folderAdminCommand = Join-Path $folderAdminMenu "command"
245
+ $backgroundAdminMenu = Join-Path $classes "Directory\Background\shell\MobiusAdmin"
246
+ $backgroundAdminCommand = Join-Path $backgroundAdminMenu "command"
230
247
 
231
- foreach ($key in @($folderCommand, $backgroundCommand)) {
248
+ foreach ($key in @($folderCommand, $backgroundCommand, $folderAdminCommand, $backgroundAdminCommand)) {
232
249
  New-Item -Path $key -Force | Out-Null
233
250
  }
234
251
 
235
252
  foreach ($menu in @($folderMenu, $backgroundMenu)) {
236
- Set-ItemProperty -Path $menu -Name "MUIVerb" -Value "在 Mobius 中打开"
253
+ Set-ItemProperty -Path $menu -Name "MUIVerb" -Value "在Mobius终端中打开"
237
254
  Set-ItemProperty -Path $menu -Name "Icon" -Value "$env:SystemRoot\System32\cmd.exe,0"
238
255
  }
256
+ foreach ($menu in @($folderAdminMenu, $backgroundAdminMenu)) {
257
+ Set-ItemProperty -Path $menu -Name "MUIVerb" -Value "在Mobius终端中打开(管理员权限)"
258
+ Set-ItemProperty -Path $menu -Name "Icon" -Value "$env:SystemRoot\System32\cmd.exe,0"
259
+ # 空字符串的 HasLUAShield 让 Explorer 在菜单项旁边显示 UAC 盾牌.
260
+ Set-ItemProperty -Path $menu -Name "HasLUAShield" -Value ""
261
+ }
239
262
 
240
263
  # Explorer command quoting: cmd /c ""helper.cmd" "%1"".
241
264
  $folderCommandValue = '"{0}" /d /s /c ""{1}" "%1""' -f $env:ComSpec, $openHereCmd
242
265
  $backgroundCommandValue = '"{0}" /d /s /c ""{1}" "%V""' -f $env:ComSpec, $openHereCmd
243
266
  Set-Item -Path $folderCommand -Value $folderCommandValue
244
267
  Set-Item -Path $backgroundCommand -Value $backgroundCommandValue
245
- Ok "右键菜单已添加: 在 Mobius 中打开 (文件夹 + 空白处)"
268
+
269
+ # 管理员入口: 隐藏中间窗口跑 .ps1, 提权后的终端窗口由 Start-Process 拉起.
270
+ $folderAdminCommandValue = 'powershell.exe -NoProfile -ExecutionPolicy Bypass -WindowStyle Hidden -File "{0}" "%1"' -f $openHereAdminPs1
271
+ $backgroundAdminCommandValue = 'powershell.exe -NoProfile -ExecutionPolicy Bypass -WindowStyle Hidden -File "{0}" "%V"' -f $openHereAdminPs1
272
+ Set-Item -Path $folderAdminCommand -Value $folderAdminCommandValue
273
+ Set-Item -Path $backgroundAdminCommand -Value $backgroundAdminCommandValue
274
+ Ok "右键菜单已添加: 在Mobius终端中打开 + 在Mobius终端中打开(管理员权限)(文件夹 + 空白处)"
246
275
 
247
276
  Write-Host ""
248
277
  Write-Host "=== 完成! 重开 PowerShell 后运行: mobius ===" -ForegroundColor Green
249
278
  Write-Host "(或直接运行: $mobiusCmd)" -ForegroundColor Gray
250
- Write-Host "右键文件夹或文件夹空白处,可选择: 在 Mobius 中打开" -ForegroundColor Gray
279
+ Write-Host "右键文件夹或文件夹空白处,可选择: 在Mobius终端中打开 / 在Mobius终端中打开(管理员权限)" -ForegroundColor Gray
251
280
  }
252
281
 
253
282
  try {
254
283
  Invoke-MobiusInstall
255
284
  } catch {
256
- $errorLog = Join-Path $env:TEMP "mobius-install-v15-error.log"
285
+ $errorLog = Join-Path $env:TEMP "mobius-install-v16-error.log"
257
286
  $errorText = $_ | Format-List * -Force | Out-String
258
287
  $errorText | Set-Content -Path $errorLog -Encoding UTF8
259
288
  Write-Host ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mobius-os/mobius",
3
- "version": "0.3.72",
3
+ "version": "0.3.74",
4
4
  "type": "module",
5
5
  "description": "Mobius terminal client. Reuses Mobius frontend TypeScript types and jsonl entry shapes.",
6
6
  "bin": {
@@ -32,6 +32,10 @@ import {
32
32
  setTuiGuiMode, tuiAimuxIdentifier, tuiGuiAuthorized, tuiGuiMode, type GuiMode,
33
33
  } from '../aimux.js'
34
34
  import { windowsElevated } from '../lib/windows-admin.js'
35
+ import {
36
+ CREATE_ITEM_ICON, EASY_DEFAULT_ISSUE_TITLE, EASY_DEFAULT_PROJECT_NAME,
37
+ EASY_ISSUE_LABEL, EASY_PROJECT_LABEL, ISSUE_ITEM_ICON, PROJECT_ITEM_ICON,
38
+ } from '../easy-mode-defaults.js'
35
39
  import type { Issue, Project, SessionModelOption } from '../types.js'
36
40
 
37
41
  export interface ConfigResult {
@@ -161,6 +165,10 @@ export function ReconfigFlow({ client, onDone, onCancel, platform = process.plat
161
165
  const [createMode, setCreateMode] = useState<'project' | 'issue' | null>(null)
162
166
  const doneRef = useRef(false)
163
167
  const thisCwd = cwd()
168
+ // 快捷任务/日常会话置顶, 不存在时选中即创建
169
+ // Pin the easy defaults on top; picking a missing one creates it on demand.
170
+ const pinnedProject = (projects ?? []).find(p => p.name === EASY_DEFAULT_PROJECT_NAME) ?? null
171
+ const pinnedIssue = (issues ?? []).find(i => i.title === EASY_DEFAULT_ISSUE_TITLE) ?? null
164
172
 
165
173
  function goBack() {
166
174
  // The focused TextInput owns Esc while a create form is open. Returning
@@ -375,11 +383,19 @@ export function ReconfigFlow({ client, onDone, onCancel, platform = process.plat
375
383
  ? <Text color="cyan">加载项目列表…</Text>
376
384
  : <Select
377
385
  items={[
378
- { label: '➕ 创建新项目', value: '__create__' },
379
- ...projects.map(p => ({ label: p.name, desc: p.description, value: p.id })),
386
+ { label: `${CREATE_ITEM_ICON}创建新项目`, value: '__create__' },
387
+ // 快捷任务固定第二行, 列表其余项目排在空行之后
388
+ // The easy default sits on row 2; the remaining projects follow one blank row.
389
+ { label: EASY_PROJECT_LABEL, desc: pinnedProject?.description || '一键创建并进入', value: pinnedProject?.id ?? '__easy_project__' },
390
+ { label: '', value: '__sep__', disabled: true },
391
+ ...projects.filter(p => p.id !== pinnedProject?.id).map(p => ({ label: `${PROJECT_ITEM_ICON}${p.name}`, desc: p.description, value: p.id })),
380
392
  ]}
381
- initialActive={projects.length > 0 ? 1 : 0}
382
- onSelect={v => v === '__create__' ? setCreateMode('project') : pickProject(projects!.find(p => p.id === v)!)}
393
+ initialActive={pinnedProject ? 1 : projects.length ? 2 : 1}
394
+ onSelect={v => {
395
+ if (v === '__create__') return setCreateMode('project')
396
+ if (v === '__easy_project__') return void createProject(EASY_DEFAULT_PROJECT_NAME)
397
+ return void pickProject(projects.find(p => p.id === v)!)
398
+ }}
383
399
  />}
384
400
  </Box>
385
401
  <Text color="gray">↑↓ 选择 · 回车确认 · Esc 取消</Text>
@@ -393,17 +409,21 @@ export function ReconfigFlow({ client, onDone, onCancel, platform = process.plat
393
409
  <Box marginTop={1}>
394
410
  {issues === null
395
411
  ? <Text color="cyan">加载任务列表…</Text>
396
- : issues.length === 0
397
- ? <Select
398
- items={[{ label: '➕ 创建新任务(尚无任务)', value: '__create__' }]}
399
- onSelect={() => setCreateMode('issue')} />
400
- : <Select
401
- items={[
402
- { label: '➕ 创建新任务', value: '__create__' },
403
- ...issues.map(i => ({ label: i.title, desc: i.description, value: i.id })),
404
- ]}
405
- initialActive={1}
406
- onSelect={v => v === '__create__' ? setCreateMode('issue') : pickIssue(issues!.find(i => i.id === v)!)} />}
412
+ : <Select
413
+ items={[
414
+ { label: issues.length ? `${CREATE_ITEM_ICON}创建新任务` : `${CREATE_ITEM_ICON}创建新任务(尚无任务)`, value: '__create__' },
415
+ // 日常会话固定第二行, 列表其余任务排在空行之后
416
+ // The easy default sits on row 2; the remaining tasks follow one blank row.
417
+ { label: EASY_ISSUE_LABEL, desc: pinnedIssue?.description || '一键创建并进入', value: pinnedIssue?.id ?? '__easy_issue__' },
418
+ { label: '', value: '__sep__', disabled: true },
419
+ ...issues.filter(i => i.id !== pinnedIssue?.id).map(i => ({ label: `${ISSUE_ITEM_ICON}${i.title}`, desc: i.description, value: i.id })),
420
+ ]}
421
+ initialActive={pinnedIssue ? 1 : issues.length ? 2 : 1}
422
+ onSelect={v => {
423
+ if (v === '__create__') return setCreateMode('issue')
424
+ if (v === '__easy_issue__') return void createIssue(EASY_DEFAULT_ISSUE_TITLE)
425
+ return void pickIssue(issues.find(i => i.id === v)!)
426
+ }} />}
407
427
  </Box>
408
428
  <Text color="gray">↑↓ 选择 · 回车确认 · Esc 取消</Text>
409
429
  </Box>
@@ -17,6 +17,10 @@ import { Select, TextInput, type SelectItem } from './primitives.js'
17
17
  import { MobiusClient } from '../api.js'
18
18
  import { effectiveGuiMode, guiModeOptions, hasGuiSupport, restartAimuxConnectionForGuiChange, setTuiGuiMode, tuiGuiMode, type GuiMode } from '../aimux.js'
19
19
  import { windowsElevated } from '../lib/windows-admin.js'
20
+ import {
21
+ CREATE_ITEM_ICON, EASY_DEFAULT_ISSUE_TITLE, EASY_DEFAULT_PROJECT_NAME,
22
+ EASY_ISSUE_LABEL, EASY_PROJECT_LABEL, ISSUE_ITEM_ICON, PROJECT_ITEM_ICON,
23
+ } from '../easy-mode-defaults.js'
20
24
  import {
21
25
  bindCwdToProject, cwd, getCwdPreference, loadDir2Project, loadProjectsCache,
22
26
  saveProjectsCache, setCwdIssue, updateIssuePreference, type IssuePreference,
@@ -369,11 +373,14 @@ function ProjectPicker({ cwd, projects, statusMsg, onPick, onCreate, onQuit }: {
369
373
  )
370
374
  }
371
375
 
372
- const items: SelectItem[] = projects.map(p => ({
373
- label: p.name,
374
- desc: p.description,
375
- value: p.id,
376
- }))
376
+ // 快捷任务置顶, 不存在时选中即创建
377
+ // Pin the easy default on top; picking it while missing creates it on demand.
378
+ const pinned = projects.find(p => p.name === EASY_DEFAULT_PROJECT_NAME) ?? null
379
+ const items: SelectItem[] = [
380
+ { label: EASY_PROJECT_LABEL, desc: pinned?.description || '一键创建并进入', value: pinned?.id ?? '__easy_project__' },
381
+ { label: '', value: '__sep__', disabled: true },
382
+ ...projects.filter(p => p.id !== pinned?.id).map(p => ({ label: `${PROJECT_ITEM_ICON}${p.name}`, desc: p.description, value: p.id })),
383
+ ]
377
384
  return (
378
385
  <Box flexDirection="column" paddingX={2} paddingY={1}>
379
386
  <Text color="gray">{cwd}</Text>
@@ -381,8 +388,8 @@ function ProjectPicker({ cwd, projects, statusMsg, onPick, onCreate, onQuit }: {
381
388
  title="选择当前路径的绑定项目"
382
389
  placeholder="输入项目名或描述"
383
390
  items={items}
384
- createItem={{ label: '➕ 创建新项目', value: '__create__', desc: '绑定到当前路径' }}
385
- onSelect={v => onPick(projects.find(p => p.id === v)!)}
391
+ createItem={{ label: `${CREATE_ITEM_ICON}创建新项目`, value: '__create__', desc: '绑定到当前路径' }}
392
+ onSelect={v => v === '__easy_project__' ? onCreate(EASY_DEFAULT_PROJECT_NAME, '') : onPick(projects.find(p => p.id === v)!)}
386
393
  onCreate={() => setMode('create')}
387
394
  onQuit={onQuit}
388
395
  />
@@ -414,11 +421,14 @@ function IssuePicker({ issues, onPick, onCreate }: {
414
421
  </Box>
415
422
  )
416
423
  }
417
- const items: SelectItem[] = issues.map(i => ({
418
- label: i.title,
419
- desc: i.description,
420
- value: i.id,
421
- }))
424
+ // 日常会话置顶, 不存在时选中即创建
425
+ // Pin the easy default on top; picking it while missing creates it on demand.
426
+ const pinned = issues.find(i => i.title === EASY_DEFAULT_ISSUE_TITLE) ?? null
427
+ const items: SelectItem[] = [
428
+ { label: EASY_ISSUE_LABEL, desc: pinned?.description || '一键创建并进入', value: pinned?.id ?? '__easy_issue__' },
429
+ { label: '', value: '__sep__', disabled: true },
430
+ ...issues.filter(i => i.id !== pinned?.id).map(i => ({ label: `${ISSUE_ITEM_ICON}${i.title}`, desc: i.description, value: i.id })),
431
+ ]
422
432
  return (
423
433
  <Box flexDirection="column">
424
434
  <Text color="gray">偏好设置将保存在所选任务内部</Text>
@@ -427,8 +437,8 @@ function IssuePicker({ issues, onPick, onCreate }: {
427
437
  title="选择任务(Issue)"
428
438
  placeholder="输入任务标题或描述"
429
439
  items={items}
430
- createItem={{ label: issues.length ? '➕ 创建新任务' : '➕ 创建新任务(尚无任务)', value: '__create__' }}
431
- onSelect={v => onPick(issues.find(i => i.id === v)!)}
440
+ createItem={{ label: issues.length ? `${CREATE_ITEM_ICON}创建新任务` : `${CREATE_ITEM_ICON}创建新任务(尚无任务)`, value: '__create__' }}
441
+ onSelect={v => v === '__easy_issue__' ? onCreate(EASY_DEFAULT_ISSUE_TITLE) : onPick(issues.find(i => i.id === v)!)}
432
442
  onCreate={() => setMode('create-name')}
433
443
  />
434
444
  </Box>
@@ -538,8 +538,10 @@ export function Select(props: SelectProps) {
538
538
  return (
539
539
  <Box key={it.value}>
540
540
  <Text
541
- color={disabled ? 'gray' : isActive ? 'black' : undefined}
542
- backgroundColor={isActive ? 'cyan' : undefined}
541
+ // 高亮行用白字深蓝底, 避免旧配色看不清
542
+ // White on blue keeps the highlighted row readable on Windows consoles.
543
+ color={disabled ? 'gray' : isActive ? 'white' : undefined}
544
+ backgroundColor={isActive ? 'blue' : undefined}
543
545
  bold={isActive}
544
546
  wrap="truncate-end"
545
547
  >
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Easy-mode default names, mirrored from the web UI's
3
+ * mobius/frontend/src/services/easy-mode-defaults.ts — keep both in sync.
4
+ * The TUI ships as a standalone npm package and cannot import frontend code.
5
+ */
6
+ export const EASY_DEFAULT_PROJECT_NAME = '快捷任务'
7
+ export const EASY_DEFAULT_ISSUE_TITLE = '日常会话'
8
+
9
+ /** Picker labels: the easy default reads as "skip the choice". */
10
+ export const EASY_PROJECT_LABEL = '🕊️不使用任何项目'
11
+ export const EASY_ISSUE_LABEL = '🕊️不使用任何任务'
12
+ export const CREATE_ITEM_ICON = '🚀'
13
+ export const PROJECT_ITEM_ICON = '📁'
14
+ export const ISSUE_ITEM_ICON = '💡'
package/tests/ui.test.tsx CHANGED
@@ -393,13 +393,16 @@ async function testPrepRender() {
393
393
  // compact and show their names alone.
394
394
  ok(!frame.includes('已有项目A - 第一行') && !frame.includes('已有项目B - 单行描述'), 'unfocused project rows omit their descriptions')
395
395
  stdin.write('\x1b[B'); await delay(15) // move focus from search to the list
396
- stdin.write('\x1b[B'); await delay(15) // highlight the first project
396
+ stdin.write('\x1b[B'); await delay(15) // highlight the pinned easy-default row
397
+ ok((lastFrame() ?? '').includes('🕊️不使用任何项目 - 一键创建并进入'), 'easy-default project is pinned above the list')
398
+ stdin.write('\x1b[B'); await delay(15) // step over the blank separator to the first project
397
399
  const selectedFrame = lastFrame() ?? ''
398
400
  ok(selectedFrame.includes('已有项目A - 第一行 ⏎ 第二行'), 'selected multi-line description stays on the main row')
399
401
  ok(!selectedFrame.includes('已有项目B - 单行描述'), 'unselected project description is omitted')
400
402
  ok(!frame.includes('\n 第一行') && !frame.includes('\n 单行描述'), 'project explanations do not render as an additional row')
401
403
  ok(!frame.includes('加载项目列表…'), 'completed project load does not leave a stale loading message')
402
404
 
405
+ stdin.write('\x1b[A'); await delay(15) // back to the easy-default row
403
406
  stdin.write('\x1b[A'); await delay(15) // return to the create row
404
407
  stdin.write('\r')
405
408
  await delay(30)
package/uninstall.ps1 CHANGED
@@ -4,11 +4,13 @@
4
4
  Completely uninstall the current-user Mobius TUI installation on Windows.
5
5
  .DESCRIPTION
6
6
  Removes the portable Node runtime, npm package, launchers, AIMUX/Python bundle,
7
- saved login and preferences under ~/.mobius, user PATH entries, and both
8
- Explorer "Open in Mobius" context-menu registrations. No administrator rights
9
- are required. Unrelated system Node.js/Python/AIMUX installations are untouched.
7
+ saved login and preferences under ~/.mobius, user PATH entries, and the two
8
+ Explorer context-menu entries ("在Mobius终端中打开" and its administrator
9
+ variant) registered for both a folder and the folder background. No
10
+ administrator rights are required. Unrelated system Node.js/Python/AIMUX
11
+ installations are untouched.
10
12
  .EXAMPLE
11
- irm https://serve.nutshellai.cn/publish/auto/mobiustui/uninstall-v11.ps1 | iex
13
+ irm https://serve.nutshellai.cn/publish/auto/mobiustui/uninstall-v12.ps1 | iex
12
14
  #>
13
15
  $ErrorActionPreference = 'Stop'
14
16
  $ProgressPreference = 'SilentlyContinue'
@@ -33,7 +35,7 @@ function Invoke-MobiusUninstall {
33
35
  Write-Host ''
34
36
  Warn "将永久删除: $mobiusHome"
35
37
  Warn '包括登录信息、项目缓存、目录绑定、Issue 偏好、便携 Node、TUI 和 AIMUX/Python bundle。'
36
- Warn '还会删除用户 PATH 中的 Mobius 项和两个“在 Mobius 中打开”右键菜单。'
38
+ Warn '还会删除用户 PATH 中的 Mobius 项和“在Mobius终端中打开”(含管理员权限)右键菜单。'
37
39
  Write-Host ''
38
40
 
39
41
  if ($env:MOBIUS_UNINSTALL_FORCE -ne '1') {
@@ -66,12 +68,14 @@ function Invoke-MobiusUninstall {
66
68
  Step '删除 Explorer 右键菜单...'
67
69
  $contextMenuKeys = @(
68
70
  'HKCU:\Software\Classes\Directory\shell\Mobius',
69
- 'HKCU:\Software\Classes\Directory\Background\shell\Mobius'
71
+ 'HKCU:\Software\Classes\Directory\Background\shell\Mobius',
72
+ 'HKCU:\Software\Classes\Directory\shell\MobiusAdmin',
73
+ 'HKCU:\Software\Classes\Directory\Background\shell\MobiusAdmin'
70
74
  )
71
75
  foreach ($key in $contextMenuKeys) {
72
76
  if (Test-Path $key) { Remove-Item $key -Recurse -Force }
73
77
  }
74
- Ok '文件夹本身和文件夹空白处的右键菜单已删除。'
78
+ Ok '文件夹本身和文件夹空白处的右键菜单已删除(含管理员权限入口)。'
75
79
 
76
80
  Step '从当前用户 PATH 删除 Mobius 目录...'
77
81
  $removeEntries = @($mobiusBin, $npmGlobal, $npmGlobalBin) |
@@ -121,6 +125,7 @@ function Invoke-MobiusUninstall {
121
125
  Remove-Item (Join-Path $env:TEMP 'mobius-install-v13-error.log') -Force -ErrorAction SilentlyContinue
122
126
  Remove-Item (Join-Path $env:TEMP 'mobius-install-v14-error.log') -Force -ErrorAction SilentlyContinue
123
127
  Remove-Item (Join-Path $env:TEMP 'mobius-install-v15-error.log') -Force -ErrorAction SilentlyContinue
128
+ Remove-Item (Join-Path $env:TEMP 'mobius-install-v16-error.log') -Force -ErrorAction SilentlyContinue
124
129
  Remove-Item (Join-Path $env:TEMP 'mobius-uninstall-v11-error.log') -Force -ErrorAction SilentlyContinue
125
130
  Ok '临时安装文件已清理。'
126
131