@khorsheed/dsh-file-preview 0.4.0 → 0.4.1

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/lib/index.js CHANGED
@@ -722,7 +722,7 @@ async function openExternalNative(path, appId, signal, internals = {}) {
722
722
  "-a",
723
723
  app,
724
724
  path
725
- ], signal);
725
+ ], signal, "visible");
726
726
  }
727
727
  //#endregion
728
728
  //#region lib/types/reveal.js
@@ -770,25 +770,25 @@ async function revealNativePath(path, signal, internals = {}) {
770
770
  const platform = internals.platform ?? process.platform;
771
771
  const run = internals.run ?? runNativeCommand;
772
772
  if (platform === "linux" && isWsl(internals)) {
773
- const translated = await run("wslpath", ["-w", path], signal);
773
+ const translated = await run("wslpath", ["-w", path], signal, "hidden");
774
774
  signal.throwIfAborted();
775
775
  const windowsPath = translated.stdout.replace(/[\r\n]+$/, "");
776
776
  if (windowsPath === "") throw new Error("wslpath returned no Windows path");
777
- await run("explorer.exe", [`/select,${windowsPath}`], signal);
777
+ await run("explorer.exe", [`/select,${windowsPath}`], signal, "visible");
778
778
  return;
779
779
  }
780
780
  if (platform === "darwin") {
781
- await run("open", ["-R", path], signal);
781
+ await run("open", ["-R", path], signal, "visible");
782
782
  return;
783
783
  }
784
784
  if (platform === "win32") {
785
- await run("explorer.exe", [`/select,${path}`], signal);
785
+ await run("explorer.exe", [`/select,${path}`], signal, "visible");
786
786
  return;
787
787
  }
788
788
  if (platform === "linux") {
789
789
  let lastError;
790
790
  for (const manager of SELECT_FILE_MANAGERS) try {
791
- await run(manager, ["--select", path], signal);
791
+ await run(manager, ["--select", path], signal, "visible");
792
792
  return;
793
793
  } catch (error) {
794
794
  lastError = error;
@@ -57,5 +57,5 @@ export async function openExternalNative(path, appId, signal, internals = {}) {
57
57
  if (app === undefined)
58
58
  throw new Error(`unknown application id "${appId}"`);
59
59
  const run = internals.run ?? runNativeCommand;
60
- await run('open', ['-a', app, path], signal);
60
+ await run('open', ['-a', app, path], signal, 'visible');
61
61
  }
@@ -41,27 +41,27 @@ export async function revealNativePath(path, signal, internals = {}) {
41
41
  const platform = internals.platform ?? process.platform;
42
42
  const run = internals.run ?? runNativeCommand;
43
43
  if (platform === 'linux' && isWsl(internals)) {
44
- const translated = await run('wslpath', ['-w', path], signal);
44
+ const translated = await run('wslpath', ['-w', path], signal, 'hidden');
45
45
  signal.throwIfAborted();
46
46
  const windowsPath = translated.stdout.replace(/[\r\n]+$/, '');
47
47
  if (windowsPath === '')
48
48
  throw new Error('wslpath returned no Windows path');
49
- await run('explorer.exe', [`/select,${windowsPath}`], signal);
49
+ await run('explorer.exe', [`/select,${windowsPath}`], signal, 'visible');
50
50
  return;
51
51
  }
52
52
  if (platform === 'darwin') {
53
- await run('open', ['-R', path], signal);
53
+ await run('open', ['-R', path], signal, 'visible');
54
54
  return;
55
55
  }
56
56
  if (platform === 'win32') {
57
- await run('explorer.exe', [`/select,${path}`], signal);
57
+ await run('explorer.exe', [`/select,${path}`], signal, 'visible');
58
58
  return;
59
59
  }
60
60
  if (platform === 'linux') {
61
61
  let lastError;
62
62
  for (const manager of SELECT_FILE_MANAGERS) {
63
63
  try {
64
- await run(manager, ['--select', path], signal);
64
+ await run(manager, ['--select', path], signal, 'visible');
65
65
  return;
66
66
  }
67
67
  catch (error) {
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "cordis",
8
8
  "file-preview"
9
9
  ],
10
- "version": "0.4.0",
10
+ "version": "0.4.1",
11
11
  "type": "module",
12
12
  "main": "lib/index.js",
13
13
  "types": "lib/types/index.d.ts",
@@ -54,19 +54,19 @@
54
54
  "license": "MIT",
55
55
  "peerDependencies": {
56
56
  "@deepseek-ai/cordis": "^4.0.1",
57
- "@deepseek-ai/dsh-agent": "^0.1.0-rc.6",
58
- "@deepseek-ai/dsh-api-remotes": "^0.1.0-rc.6",
59
- "@deepseek-ai/dsh-client-locale": "^0.1.0-rc.6",
60
- "@deepseek-ai/dsh-client-ui-chat": "^0.1.0-rc.6",
61
- "@deepseek-ai/dsh-client-ui-primitives": "^0.1.0-rc.6",
62
- "@deepseek-ai/dsh-client-ui-sidebar-right": "^0.1.7-rc.1",
63
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.0-rc.6",
64
- "@deepseek-ai/dsh-fs": "^0.1.0-rc.6",
65
- "@deepseek-ai/dsh-invariants": "^0.1.0-rc.6",
66
- "@deepseek-ai/dsh-native-command": "^0.1.0-rc.6",
67
- "@deepseek-ai/dsh-session": "^0.1.0-rc.6",
68
- "@deepseek-ai/dsh-tools": "^0.1.0-rc.6",
69
- "@deepseek-ai/dsh-typert-protocol": "^0.1.0-rc.6",
57
+ "@deepseek-ai/dsh-agent": "^0.1.0-rc.6 || ^0.2.0-rc.1",
58
+ "@deepseek-ai/dsh-api-remotes": "^0.1.0-rc.6 || ^0.2.0-rc.1",
59
+ "@deepseek-ai/dsh-client-locale": "^0.1.0-rc.6 || ^0.2.0-rc.1",
60
+ "@deepseek-ai/dsh-client-ui-chat": "^0.1.0-rc.6 || ^0.2.0-rc.1",
61
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.1.0-rc.6 || ^0.2.0-rc.1",
62
+ "@deepseek-ai/dsh-client-ui-sidebar-right": "^0.1.7-rc.1 || ^0.2.0-rc.1",
63
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.0-rc.6 || ^0.2.0-rc.1",
64
+ "@deepseek-ai/dsh-fs": "^0.1.0-rc.6 || ^0.2.0-rc.1",
65
+ "@deepseek-ai/dsh-invariants": "^0.1.0-rc.6 || ^0.2.0-rc.1",
66
+ "@deepseek-ai/dsh-native-command": "^0.1.0-rc.6 || ^0.2.0-rc.1",
67
+ "@deepseek-ai/dsh-session": "^0.1.0-rc.6 || ^0.2.0-rc.1",
68
+ "@deepseek-ai/dsh-tools": "^0.1.0-rc.6 || ^0.2.0-rc.1",
69
+ "@deepseek-ai/dsh-typert-protocol": "^0.1.0-rc.6 || ^0.2.0-rc.1",
70
70
  "react": "^18.2.0",
71
71
  "react-dom": "^18.2.0"
72
72
  },