claude-code-openai 0.1.22 → 0.1.24
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 +11 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -204660,7 +204660,7 @@ var init_metadata = __esm(() => {
|
|
|
204660
204660
|
isClaudeAiAuth: isClaudeAISubscriber(),
|
|
204661
204661
|
version: "2.1.88-rebuild",
|
|
204662
204662
|
versionBase: getVersionBase(),
|
|
204663
|
-
buildTime: "2026-04-01T20:
|
|
204663
|
+
buildTime: "2026-04-01T20:45:10.833Z",
|
|
204664
204664
|
deploymentEnvironment: env4.detectDeploymentEnvironment(),
|
|
204665
204665
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
204666
204666
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -592949,7 +592949,7 @@ function getAnthropicEnvMetadata() {
|
|
|
592949
592949
|
function getBuildAgeMinutes() {
|
|
592950
592950
|
if (false)
|
|
592951
592951
|
;
|
|
592952
|
-
const buildTime = new Date("2026-04-01T20:
|
|
592952
|
+
const buildTime = new Date("2026-04-01T20:45:10.833Z").getTime();
|
|
592953
592953
|
if (isNaN(buildTime))
|
|
592954
592954
|
return;
|
|
592955
592955
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -595238,8 +595238,13 @@ async function* queryModelOpenAI(messages, systemPrompt, thinkingConfig, tools,
|
|
|
595238
595238
|
const openaiModel = resolveOpenAIModel(options.model);
|
|
595239
595239
|
const instructions = convertSystemPrompt(systemPrompt.filter(Boolean).map((text2) => ({ type: "text", text: text2 })));
|
|
595240
595240
|
const oaiTools = convertToolSchemas(tools);
|
|
595241
|
-
|
|
595242
|
-
|
|
595241
|
+
const hasWebSearch = oaiTools.some((t2) => t2.type === "web_search_preview" || t2.type === "web_search");
|
|
595242
|
+
if (!hasWebSearch) {
|
|
595243
|
+
if (client3.isOAuthChatgpt) {
|
|
595244
|
+
oaiTools.push({ type: "web_search", search_context_size: "medium", external_web_access: true });
|
|
595245
|
+
} else {
|
|
595246
|
+
oaiTools.push({ type: "web_search_preview", search_context_size: "medium" });
|
|
595247
|
+
}
|
|
595243
595248
|
}
|
|
595244
595249
|
const toolChoice = convertToolChoice(options.toolChoice);
|
|
595245
595250
|
const supportsReasoning = /^(gpt-5|o[1-9]|o3)/.test(openaiModel);
|
|
@@ -679541,7 +679546,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
679541
679546
|
var call56 = async () => {
|
|
679542
679547
|
return {
|
|
679543
679548
|
type: "text",
|
|
679544
|
-
value: `${"2.1.88-rebuild"} (built ${"2026-04-01T20:
|
|
679549
|
+
value: `${"2.1.88-rebuild"} (built ${"2026-04-01T20:45:10.833Z"})`
|
|
679545
679550
|
};
|
|
679546
679551
|
}, version6, version_default;
|
|
679547
679552
|
var init_version = __esm(() => {
|
|
@@ -777552,4 +777557,4 @@ async function main2() {
|
|
|
777552
777557
|
}
|
|
777553
777558
|
main2();
|
|
777554
777559
|
|
|
777555
|
-
//# debugId=
|
|
777560
|
+
//# debugId=1236D03F415513E764756E2164756E21
|