claude-simple 0.2.18 → 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/client.js +156 -3
- package/dist/{app.0.2.18.min.js → app.0.2.20.min.js} +57 -57
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/public/index.html +2 -2
- package/public/shell/hub.js +24 -14
- package/public/shell/session-list.js +7 -4
- package/public/sw.js +3 -3
- package/public/ui.min.css +1 -1
- package/src/app.js +13 -1
- /package/dist/{style.0.2.18.min.css → style.0.2.20.min.css} +0 -0
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
|
|
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
|