claude-code-openai 0.1.20 → 0.1.22

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 +10 -4
  2. 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:18:48.855Z",
204663
+ buildTime: "2026-04-01T20:38:34.646Z",
204664
204664
  deploymentEnvironment: env4.detectDeploymentEnvironment(),
204665
204665
  ...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
204666
204666
  githubEventName: process.env.GITHUB_EVENT_NAME,
@@ -552318,6 +552318,9 @@ function getColorModuleUnavailableReason() {
552318
552318
  if (isEnvDefinedFalsy(process.env.CLAUDE_CODE_SYNTAX_HIGHLIGHT)) {
552319
552319
  return "env";
552320
552320
  }
552321
+ if (typeof ColorFile.prototype.render !== "function") {
552322
+ return "stub";
552323
+ }
552321
552324
  return null;
552322
552325
  }
552323
552326
  function expectColorDiff() {
@@ -592946,7 +592949,7 @@ function getAnthropicEnvMetadata() {
592946
592949
  function getBuildAgeMinutes() {
592947
592950
  if (false)
592948
592951
  ;
592949
- const buildTime = new Date("2026-04-01T20:18:48.855Z").getTime();
592952
+ const buildTime = new Date("2026-04-01T20:38:34.646Z").getTime();
592950
592953
  if (isNaN(buildTime))
592951
592954
  return;
592952
592955
  return Math.floor((Date.now() - buildTime) / 60000);
@@ -595235,6 +595238,9 @@ async function* queryModelOpenAI(messages, systemPrompt, thinkingConfig, tools,
595235
595238
  const openaiModel = resolveOpenAIModel(options.model);
595236
595239
  const instructions = convertSystemPrompt(systemPrompt.filter(Boolean).map((text2) => ({ type: "text", text: text2 })));
595237
595240
  const oaiTools = convertToolSchemas(tools);
595241
+ if (!oaiTools.some((t2) => t2.type === "web_search_preview")) {
595242
+ oaiTools.push({ type: "web_search_preview", search_context_size: "medium" });
595243
+ }
595238
595244
  const toolChoice = convertToolChoice(options.toolChoice);
595239
595245
  const supportsReasoning = /^(gpt-5|o[1-9]|o3)/.test(openaiModel);
595240
595246
  const reasoning = supportsReasoning ? convertThinkingConfig(thinkingConfig) : undefined;
@@ -679535,7 +679541,7 @@ var init_bridge_kick = __esm(() => {
679535
679541
  var call56 = async () => {
679536
679542
  return {
679537
679543
  type: "text",
679538
- value: `${"2.1.88-rebuild"} (built ${"2026-04-01T20:18:48.855Z"})`
679544
+ value: `${"2.1.88-rebuild"} (built ${"2026-04-01T20:38:34.646Z"})`
679539
679545
  };
679540
679546
  }, version6, version_default;
679541
679547
  var init_version = __esm(() => {
@@ -777546,4 +777552,4 @@ async function main2() {
777546
777552
  }
777547
777553
  main2();
777548
777554
 
777549
- //# debugId=13B36095FE4CE89A64756E2164756E21
777555
+ //# debugId=910E5B4E10F494E764756E2164756E21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-openai",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "description": "Claude Code CLI with OpenAI GPT-5.4 backend support",
5
5
  "type": "module",
6
6
  "bin": {