@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/installer.js +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openagents-org/agent-launcher",
3
- "version": "0.2.68",
3
+ "version": "0.2.69",
4
4
  "description": "OpenAgents Launcher — install, configure, and run AI coding agents from your terminal",
5
5
  "main": "src/index.js",
6
6
  "bin": {
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 };