ikie-cli 0.1.45 → 0.1.46

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/dist/index.js +4 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -209,6 +209,10 @@ ${errorLine('Not signed in.')}
209
209
  apiKey,
210
210
  baseURL: config.baseURL ?? IKIE_API_BASE,
211
211
  timeout: 60000, // 60 seconds timeout to prevent indefinite hangs
212
+ // Override the SDK's default "User-Agent: OpenAI/JS x.y.z". Cloudflare's
213
+ // bot/WAF rules block any UA matching "OpenAI/…" with a 403 "Your request
214
+ // was blocked." — which would 403 every CLI request. Identify as ikie-cli.
215
+ defaultHeaders: { 'User-Agent': 'ikie-cli' },
212
216
  });
213
217
  const projectRoot = findProjectRoot(process.cwd());
214
218
  const projectCtx = detectProjectContext(projectRoot);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ikie-cli",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "description": "Agentic coding CLI — your terminal AI pair programmer",
5
5
  "type": "module",
6
6
  "bin": {