claude-simple 0.2.19 → 0.2.20

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/dist/index.html CHANGED
@@ -4,13 +4,13 @@
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
6
6
  <title>Claude Code</title>
7
- <link rel="stylesheet" href="/style.0.2.19.min.css">
7
+ <link rel="stylesheet" href="/style.0.2.20.min.css">
8
8
  <link rel="stylesheet" href="/highlight.min.css">
9
9
  <script src="/marked.min.js"></script>
10
10
  <script src="/highlight.min.js"></script>
11
11
  </head>
12
12
  <body class="h-dvh overflow-hidden flex flex-col bg-base-100 text-base-content">
13
13
  <div id="root" class="flex flex-col flex-1 overflow-hidden"></div>
14
- <script type="module" src="/app.0.2.19.min.js"></script>
14
+ <script type="module" src="/app.0.2.20.min.js"></script>
15
15
  </body>
16
16
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-simple",
3
- "version": "0.2.19",
3
+ "version": "0.2.20",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "claude-simple": "server.js",
package/src/app.js CHANGED
@@ -44,10 +44,22 @@ const CREDENTIALS_FILE = process.env.CREDENTIALS_FILE || path.join(rootDir, '.
44
44
  const WORKSPACES_FILE = process.env.WORKSPACES_FILE || path.join(rootDir, '.workspaces.json');
45
45
  const PROJECT_NOTES_FILE = process.env.PROJECT_NOTES_FILE || path.join(rootDir, '.project_notes.json');
46
46
  const SESSION_META_FILE = process.env.SESSION_META_FILE || path.join(rootDir, '.session_meta.json');
47
+ // launchd/systemd have a deliberately minimal PATH. Prefer a user-local binary
48
+ // for bare command names so agents installed by their own updaters keep working
49
+ // without requiring the service unit to mirror an interactive shell PATH.
50
+ function resolveUserLocalCommand(configured, fallback) {
51
+ const command = configured || fallback;
52
+ if (command.includes('/') || command.includes('\\')) return command.replace(/^~/, os.homedir());
53
+ for (const dir of [path.join(os.homedir(), '.local', 'bin'), path.join(os.homedir(), 'bin')]) {
54
+ const candidate = path.join(dir, command);
55
+ if (fsSync.existsSync(candidate)) return candidate;
56
+ }
57
+ return command;
58
+ }
47
59
  const CLAUDE_CLI_PATH = process.env.CLAUDE_CLI_PATH || 'claude';
48
60
  const CODEX_CLI_PATH = process.env.CODEX_CLI_PATH || 'codex';
49
61
  const GROK_CLI_PATH = process.env.GROK_CLI_PATH || 'grok';
50
- const GEMINI_CLI_PATH = process.env.GEMINI_CLI_PATH || process.env.AGY_PATH || 'agy';
62
+ const GEMINI_CLI_PATH = resolveUserLocalCommand(process.env.GEMINI_CLI_PATH || process.env.AGY_PATH, 'agy');
51
63
  const CURSOR_AGENT_PATH = process.env.CURSOR_AGENT_PATH || 'cursor-agent';
52
64
  const CODEX_HOME = (process.env.CODEX_HOME || path.join(os.homedir(), '.codex')).replace(/^~/, os.homedir());
53
65
  const GROK_HOME = (process.env.GROK_HOME || path.join(os.homedir(), '.grok')).replace(/^~/, os.homedir());
File without changes