@orchagent/cli 0.3.12 → 0.3.14
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/commands/run.js +3 -3
- package/dist/lib/api.js +7 -1
- package/package.json +1 -1
package/dist/commands/run.js
CHANGED
|
@@ -153,10 +153,10 @@ async function checkDependencies(config, dependencies) {
|
|
|
153
153
|
return results;
|
|
154
154
|
}
|
|
155
155
|
async function promptUserForDeps(depStatuses) {
|
|
156
|
-
// In non-interactive mode (CI, piped input),
|
|
156
|
+
// In non-interactive mode (CI, piped input), skip deps by default and let agent run
|
|
157
157
|
if (!process.stdin.isTTY) {
|
|
158
|
-
process.stderr.write('Non-interactive mode
|
|
159
|
-
return '
|
|
158
|
+
process.stderr.write('Non-interactive mode: skipping dependencies (use --with-deps to include them).\n');
|
|
159
|
+
return 'local'; // Skip deps, let agent run
|
|
160
160
|
}
|
|
161
161
|
const readline = await Promise.resolve().then(() => __importStar(require('readline')));
|
|
162
162
|
const rl = readline.createInterface({
|
package/dist/lib/api.js
CHANGED
|
@@ -205,7 +205,13 @@ async function request(config, method, path, options = {}) {
|
|
|
205
205
|
return (await response.json());
|
|
206
206
|
}
|
|
207
207
|
async function publicRequest(config, path) {
|
|
208
|
-
|
|
208
|
+
// Pass API key if available - allows server to skip IP-based rate limiting
|
|
209
|
+
// for authenticated users while still using the public endpoint for data
|
|
210
|
+
const headers = {};
|
|
211
|
+
if (config.apiKey) {
|
|
212
|
+
headers['Authorization'] = `Bearer ${config.apiKey}`;
|
|
213
|
+
}
|
|
214
|
+
const response = await safeFetchWithRetry(buildUrl(config.apiUrl, path), { headers });
|
|
209
215
|
if (!response.ok) {
|
|
210
216
|
throw await parseError(response);
|
|
211
217
|
}
|