@openagents-org/agent-launcher 0.2.68 → 0.2.69
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/installer.js +10 -0
package/package.json
CHANGED
package/src/installer.js
CHANGED
|
@@ -163,6 +163,16 @@ class Installer {
|
|
|
163
163
|
}
|
|
164
164
|
} catch {}
|
|
165
165
|
}
|
|
166
|
+
// Also check OAuth credentials (Claude Code stores tokens in .credentials.json)
|
|
167
|
+
if (!ready) {
|
|
168
|
+
try {
|
|
169
|
+
const oauthFile = path.join(os.homedir(), '.claude', '.credentials.json');
|
|
170
|
+
if (fs.existsSync(oauthFile)) {
|
|
171
|
+
const creds = JSON.parse(fs.readFileSync(oauthFile, 'utf-8'));
|
|
172
|
+
if (creds.claudeAiOauth?.accessToken) ready = true;
|
|
173
|
+
}
|
|
174
|
+
} catch {}
|
|
175
|
+
}
|
|
166
176
|
}
|
|
167
177
|
|
|
168
178
|
return { installed: true, binary, version, ready };
|