@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.
@@ -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), exit gracefully with helpful message
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 detected. Use --with-deps to include dependencies or --no-deps to skip them.\n');
159
- return 'cancel';
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
- const response = await safeFetchWithRetry(buildUrl(config.apiUrl, path));
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orchagent/cli",
3
- "version": "0.3.12",
3
+ "version": "0.3.14",
4
4
  "description": "Command-line interface for the orchagent AI agent marketplace",
5
5
  "license": "MIT",
6
6
  "author": "orchagent <hello@orchagent.io>",