docdex 0.2.7 → 0.2.8

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Changelog
2
2
 
3
- ## 0.2.7
3
+ ## 0.2.8
4
4
  - Added glama support
5
5
 
6
6
  ## 0.1.10
@@ -1078,7 +1078,7 @@ function launchSetupWizard({
1078
1078
  if (shouldSkipSetup(env)) return { ok: false, reason: "skipped" };
1079
1079
 
1080
1080
  const args = ["setup"];
1081
- if (platform === "linux") {
1081
+ if (platform === "linux" || platform === "darwin") {
1082
1082
  if (!canPrompt(stdin, stdout)) {
1083
1083
  return { ok: false, reason: "non_interactive" };
1084
1084
  }
@@ -1087,19 +1087,6 @@ function launchSetupWizard({
1087
1087
  return { ok: false, reason: "spawn_failed" };
1088
1088
  }
1089
1089
 
1090
- if (platform === "darwin") {
1091
- const command = `${binaryPath} ${args.join(" ")}`;
1092
- const osa = [
1093
- "osascript",
1094
- "-e",
1095
- `tell application \"Terminal\" to do script \"${command.replace(/"/g, '\\"')}\"`
1096
- ];
1097
- const result = spawnSyncFn(osa[0], osa.slice(1));
1098
- if (result.status === 0) return { ok: true };
1099
- logger?.warn?.(`[docdex] osascript failed: ${result.stderr || "unknown error"}`);
1100
- return { ok: false, reason: "terminal_launch_failed" };
1101
- }
1102
-
1103
1090
  if (platform === "win32") {
1104
1091
  const quoted = `"${binaryPath}" ${args.map((arg) => `"${arg}"`).join(" ")}`;
1105
1092
  const result = spawnSyncFn("cmd", ["/c", "start", "", quoted]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docdex",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "mcpName": "io.github.bekirdag/docdex",
5
5
  "description": "Docdex CLI as an npm-installable binary wrapper.",
6
6
  "bin": {