app-ai-solution-exp 0.1.6 → 0.1.7

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.
Files changed (2) hide show
  1. package/out/main/index.js +2 -25
  2. package/package.json +1 -1
package/out/main/index.js CHANGED
@@ -103,31 +103,8 @@ function whereExe(name) {
103
103
  }
104
104
  function getClaudeSpawnConfig() {
105
105
  if (!isWindows()) {
106
- try {
107
- const shell = process.env.SHELL || "/bin/zsh";
108
- const claudePath = child_process.execSync(`${shell} -l -c "which claude"`, {
109
- encoding: "utf8",
110
- timeout: 5e3
111
- }).trim();
112
- if (claudePath && fs.existsSync(claudePath)) {
113
- return { file: claudePath, args: [] };
114
- }
115
- } catch {
116
- }
117
- const home = process.env.HOME || "";
118
- const commonPaths = [
119
- "/usr/local/bin/claude",
120
- "/opt/homebrew/bin/claude",
121
- `${home}/.npm-global/bin/claude`,
122
- `${home}/.nvm/versions/node/current/bin/claude`,
123
- `${home}/.local/bin/claude`
124
- ];
125
- for (const p of commonPaths) {
126
- if (p && fs.existsSync(p)) {
127
- return { file: p, args: [] };
128
- }
129
- }
130
- return { file: "claude", args: [] };
106
+ const shell = process.env.SHELL || "/bin/zsh";
107
+ return { file: shell, args: ["--login", "-i", "-c", "claude"] };
131
108
  }
132
109
  const systemRoot = process.env.SystemRoot ?? "C:\\Windows";
133
110
  const cmdExe = path.join(systemRoot, "System32", "cmd.exe");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "app-ai-solution-exp",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "",
5
5
  "main": "./out/main/index.js",
6
6
  "bin": {