claude-code-openai 0.1.15 → 0.1.16
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/cli.js +23 -20
- 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
|
-
|
|
186191
|
-
|
|
186192
|
-
|
|
186193
|
-
|
|
186194
|
-
|
|
186195
|
-
|
|
186196
|
-
|
|
186197
|
-
|
|
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;">✓ 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:
|
|
204663
|
+
buildTime: "2026-04-01T19:59:10.543Z",
|
|
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:
|
|
592949
|
+
const buildTime = new Date("2026-04-01T19:59:10.543Z").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
|
-
|
|
595270
|
-
|
|
595271
|
-
|
|
595272
|
-
|
|
595273
|
-
|
|
595268
|
+
...client3.isOAuthChatgpt ? {
|
|
595269
|
+
store: false
|
|
595270
|
+
} : {
|
|
595271
|
+
max_output_tokens: maxOutputTokens,
|
|
595272
|
+
temperature: options.temperatureOverride ?? 1,
|
|
595273
|
+
reasoning,
|
|
595274
|
+
previous_response_id: usePreviousResponseId ? _lastResponseId : undefined,
|
|
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:
|
|
679528
|
+
value: `${"2.1.88-rebuild"} (built ${"2026-04-01T19:59:10.543Z"})`
|
|
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=
|
|
777539
|
+
//# debugId=4A4903D369BAB41A64756E2164756E21
|