@openagents-org/agent-launcher 0.2.63 → 0.2.64
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/package.json +1 -1
- package/src/adapters/claude.js +5 -1
package/package.json
CHANGED
package/src/adapters/claude.js
CHANGED
|
@@ -226,8 +226,12 @@ class ClaudeAdapter extends BaseAdapter {
|
|
|
226
226
|
|
|
227
227
|
// Find openagents binary (multi-tier)
|
|
228
228
|
let oaBin = null;
|
|
229
|
+
const home3 = os.homedir();
|
|
230
|
+
// Tier 0: Portable install at ~/.openagents/nodejs/node_modules/.bin/
|
|
231
|
+
const oaPortable = path.join(home3, '.openagents', 'nodejs', 'node_modules', '.bin', `openagents${IS_WINDOWS ? '.cmd' : ''}`);
|
|
232
|
+
if (fs.existsSync(oaPortable)) oaBin = oaPortable;
|
|
229
233
|
// Tier 1: PATH
|
|
230
|
-
try {
|
|
234
|
+
if (!oaBin) try {
|
|
231
235
|
if (IS_WINDOWS) {
|
|
232
236
|
oaBin = execSync('where openagents.cmd 2>nul || where openagents.exe 2>nul || where openagents 2>nul', {
|
|
233
237
|
encoding: 'utf-8', timeout: 5000,
|