claude-code-openai 0.1.15 → 0.1.17

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/cli.js +22 -19
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -186185,17 +186185,16 @@ async function startOpenAIOAuthFlow(options) {
186185
186185
  });
186186
186186
  const authorizationCode = await authCodePromise;
186187
186187
  listener.handleSuccessRedirect([], (res) => {
186188
- res.writeHead(200, { "Content-Type": "text/html" });
186189
- res.end(`
186190
- <html>
186191
- <body style="font-family: system-ui; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; background: #1a1a2e; color: #e0e0e0;">
186192
- <div style="text-align: center;">
186193
- <h1 style="color: #4CAF50;">✓ Login Successful</h1>
186194
- <p>You can close this tab and return to the terminal.</p>
186195
- </div>
186196
- </body>
186197
- </html>
186198
- `);
186188
+ res.writeHead(200, { "Content-Type": "text/html; charset=utf-8" });
186189
+ res.end(`<!DOCTYPE html>
186190
+ <html><head><meta charset="utf-8"></head>
186191
+ <body style="font-family: system-ui; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; background: #1a1a2e; color: #e0e0e0;">
186192
+ <div style="text-align: center;">
186193
+ <h1 style="color: #4CAF50;">&#10003; Login Successful</h1>
186194
+ <p>You can close this tab and return to the terminal.</p>
186195
+ </div>
186196
+ </body>
186197
+ </html>`);
186199
186198
  });
186200
186199
  logForDebugging("[OpenAI OAuth] Exchanging authorization code for tokens...");
186201
186200
  const tokenController = new AbortController;
@@ -204661,7 +204660,7 @@ var init_metadata = __esm(() => {
204661
204660
  isClaudeAiAuth: isClaudeAISubscriber(),
204662
204661
  version: "2.1.88-rebuild",
204663
204662
  versionBase: getVersionBase(),
204664
- buildTime: "2026-04-01T19:55:20.831Z",
204663
+ buildTime: "2026-04-01T20:02:48.011Z",
204665
204664
  deploymentEnvironment: env4.detectDeploymentEnvironment(),
204666
204665
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
204667
204666
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -592947,7 +592946,7 @@ function getAnthropicEnvMetadata() {
592947
592946
  function getBuildAgeMinutes() {
592948
592947
  if (false)
592949
592948
  ;
592950
- const buildTime = new Date("2026-04-01T19:55:20.831Z").getTime();
592949
+ const buildTime = new Date("2026-04-01T20:02:48.011Z").getTime();
592951
592950
  if (isNaN(buildTime))
592952
592951
  return;
592953
592952
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -595266,11 +595265,15 @@ async function* queryModelOpenAI(messages, systemPrompt, thinkingConfig, tools,
595266
595265
  tool_choice: hasFunctionTools ? toolChoice : undefined,
595267
595266
  parallel_tool_calls: hasFunctionTools ? false : undefined,
595268
595267
  stream: true,
595269
- max_output_tokens: maxOutputTokens,
595270
- temperature: options.temperatureOverride ?? 1,
595271
- reasoning,
595272
595268
  previous_response_id: usePreviousResponseId ? _lastResponseId : undefined,
595273
- store: !client3.isOAuthChatgpt
595269
+ ...client3.isOAuthChatgpt ? {
595270
+ store: false
595271
+ } : {
595272
+ max_output_tokens: maxOutputTokens,
595273
+ temperature: options.temperatureOverride ?? 1,
595274
+ reasoning,
595275
+ store: true
595276
+ }
595274
595277
  };
595275
595278
  logForDebugging(`[OpenAI] Request: model=${openaiModel} input=${input.length} items (${usePreviousResponseId ? "incremental, chain=" + _lastResponseId : "full"}) tools=${oaiTools.length}`);
595276
595279
  const start = Date.now();
@@ -679522,7 +679525,7 @@ var init_bridge_kick = __esm(() => {
679522
679525
  var call56 = async () => {
679523
679526
  return {
679524
679527
  type: "text",
679525
- value: `${"2.1.88-rebuild"} (built ${"2026-04-01T19:55:20.831Z"})`
679528
+ value: `${"2.1.88-rebuild"} (built ${"2026-04-01T20:02:48.011Z"})`
679526
679529
  };
679527
679530
  }, version6, version_default;
679528
679531
  var init_version = __esm(() => {
@@ -777533,4 +777536,4 @@ async function main2() {
777533
777536
  }
777534
777537
  main2();
777535
777538
 
777536
- //# debugId=63B92EFA731D53E864756E2164756E21
777539
+ //# debugId=F579BE2E065F285E64756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-openai",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "Claude Code CLI with OpenAI GPT-5.4 backend support",
5
5
  "type": "module",
6
6
  "bin": {