claude-code-openai 0.1.10 → 0.1.11
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 +76 -21
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -204606,7 +204606,7 @@ var init_metadata = __esm(() => {
|
|
|
204606
204606
|
isClaudeAiAuth: isClaudeAISubscriber(),
|
|
204607
204607
|
version: "2.1.88-rebuild",
|
|
204608
204608
|
versionBase: getVersionBase(),
|
|
204609
|
-
buildTime: "2026-04-
|
|
204609
|
+
buildTime: "2026-04-01T10:13:56.609Z",
|
|
204610
204610
|
deploymentEnvironment: env4.detectDeploymentEnvironment(),
|
|
204611
204611
|
...isEnvTruthy(process.env.GITHUB_ACTIONS) && {
|
|
204612
204612
|
githubEventName: process.env.GITHUB_EVENT_NAME,
|
|
@@ -592892,7 +592892,7 @@ function getAnthropicEnvMetadata() {
|
|
|
592892
592892
|
function getBuildAgeMinutes() {
|
|
592893
592893
|
if (false)
|
|
592894
592894
|
;
|
|
592895
|
-
const buildTime = new Date("2026-04-
|
|
592895
|
+
const buildTime = new Date("2026-04-01T10:13:56.609Z").getTime();
|
|
592896
592896
|
if (isNaN(buildTime))
|
|
592897
592897
|
return;
|
|
592898
592898
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -594985,30 +594985,54 @@ function convertAssistantMessage(msg, items) {
|
|
|
594985
594985
|
}
|
|
594986
594986
|
function enforceStrictSchema(schema) {
|
|
594987
594987
|
const out = { ...schema };
|
|
594988
|
+
let strictCompatible = true;
|
|
594989
|
+
for (const kw of UNSUPPORTED_SCHEMA_KEYWORDS) {
|
|
594990
|
+
delete out[kw];
|
|
594991
|
+
}
|
|
594988
594992
|
for (const keyword of ["anyOf", "oneOf", "allOf"]) {
|
|
594989
594993
|
if (Array.isArray(out[keyword])) {
|
|
594990
|
-
out[keyword] = out[keyword].map((s2) =>
|
|
594994
|
+
out[keyword] = out[keyword].map((s2) => {
|
|
594995
|
+
const r2 = enforceStrictSchema(s2);
|
|
594996
|
+
if (!r2.strictCompatible)
|
|
594997
|
+
strictCompatible = false;
|
|
594998
|
+
return r2.schema;
|
|
594999
|
+
});
|
|
594991
595000
|
}
|
|
594992
595001
|
}
|
|
594993
595002
|
if (out.type === "object") {
|
|
594994
|
-
out.additionalProperties
|
|
594995
|
-
|
|
594996
|
-
|
|
594997
|
-
|
|
594998
|
-
|
|
594999
|
-
|
|
595000
|
-
|
|
595001
|
-
|
|
595002
|
-
|
|
595003
|
-
if (
|
|
595004
|
-
|
|
595003
|
+
const hasAdditionalPropsSchema = out.additionalProperties != null && typeof out.additionalProperties === "object";
|
|
595004
|
+
const hasFixedProperties = out.properties != null && typeof out.properties === "object" && Object.keys(out.properties).length > 0;
|
|
595005
|
+
if (hasAdditionalPropsSchema && !hasFixedProperties) {
|
|
595006
|
+
strictCompatible = false;
|
|
595007
|
+
const apSchema = out.additionalProperties;
|
|
595008
|
+
const r2 = enforceStrictSchema(apSchema);
|
|
595009
|
+
out.additionalProperties = r2.schema;
|
|
595010
|
+
} else {
|
|
595011
|
+
out.additionalProperties = false;
|
|
595012
|
+
if (out.properties && typeof out.properties === "object") {
|
|
595013
|
+
const props = out.properties;
|
|
595014
|
+
const newProps = {};
|
|
595015
|
+
for (const [key2, val] of Object.entries(props)) {
|
|
595016
|
+
const r2 = enforceStrictSchema(val);
|
|
595017
|
+
if (!r2.strictCompatible)
|
|
595018
|
+
strictCompatible = false;
|
|
595019
|
+
newProps[key2] = r2.schema;
|
|
595020
|
+
}
|
|
595021
|
+
out.properties = newProps;
|
|
595022
|
+
const allKeys = Object.keys(newProps);
|
|
595023
|
+
if (allKeys.length > 0) {
|
|
595024
|
+
out.required = allKeys;
|
|
595025
|
+
}
|
|
595005
595026
|
}
|
|
595006
595027
|
}
|
|
595007
595028
|
}
|
|
595008
595029
|
if (out.type === "array" && out.items && typeof out.items === "object") {
|
|
595009
|
-
|
|
595030
|
+
const r2 = enforceStrictSchema(out.items);
|
|
595031
|
+
if (!r2.strictCompatible)
|
|
595032
|
+
strictCompatible = false;
|
|
595033
|
+
out.items = r2.schema;
|
|
595010
595034
|
}
|
|
595011
|
-
return out;
|
|
595035
|
+
return { schema: out, strictCompatible };
|
|
595012
595036
|
}
|
|
595013
595037
|
function convertToolSchemas(tools) {
|
|
595014
595038
|
const oaiTools = [];
|
|
@@ -595019,13 +595043,13 @@ function convertToolSchemas(tools) {
|
|
|
595019
595043
|
}
|
|
595020
595044
|
if (t2.type === "custom" || !("type" in t2) || t2.type === undefined) {
|
|
595021
595045
|
const tool = t2;
|
|
595022
|
-
const
|
|
595046
|
+
const { schema: cleanedParams, strictCompatible } = enforceStrictSchema(tool.input_schema);
|
|
595023
595047
|
oaiTools.push({
|
|
595024
595048
|
type: "function",
|
|
595025
595049
|
name: tool.name,
|
|
595026
595050
|
description: tool.description ?? "",
|
|
595027
|
-
parameters:
|
|
595028
|
-
strict:
|
|
595051
|
+
parameters: cleanedParams,
|
|
595052
|
+
strict: strictCompatible
|
|
595029
595053
|
});
|
|
595030
595054
|
}
|
|
595031
595055
|
}
|
|
@@ -595090,6 +595114,35 @@ function convertThinkingConfig(thinkingConfig) {
|
|
|
595090
595114
|
return;
|
|
595091
595115
|
}
|
|
595092
595116
|
}
|
|
595117
|
+
var UNSUPPORTED_SCHEMA_KEYWORDS;
|
|
595118
|
+
var init_openai_adapter = __esm(() => {
|
|
595119
|
+
UNSUPPORTED_SCHEMA_KEYWORDS = [
|
|
595120
|
+
"propertyNames",
|
|
595121
|
+
"patternProperties",
|
|
595122
|
+
"if",
|
|
595123
|
+
"then",
|
|
595124
|
+
"else",
|
|
595125
|
+
"dependencies",
|
|
595126
|
+
"dependentRequired",
|
|
595127
|
+
"dependentSchemas",
|
|
595128
|
+
"minProperties",
|
|
595129
|
+
"maxProperties",
|
|
595130
|
+
"contentEncoding",
|
|
595131
|
+
"contentMediaType",
|
|
595132
|
+
"$anchor",
|
|
595133
|
+
"$dynamicAnchor",
|
|
595134
|
+
"$dynamicRef",
|
|
595135
|
+
"unevaluatedProperties",
|
|
595136
|
+
"unevaluatedItems",
|
|
595137
|
+
"prefixItems",
|
|
595138
|
+
"$comment",
|
|
595139
|
+
"examples",
|
|
595140
|
+
"deprecated",
|
|
595141
|
+
"readOnly",
|
|
595142
|
+
"writeOnly",
|
|
595143
|
+
"minLength"
|
|
595144
|
+
];
|
|
595145
|
+
});
|
|
595093
595146
|
|
|
595094
595147
|
// src/services/api/openai-query.ts
|
|
595095
595148
|
var exports_openai_query = {};
|
|
@@ -595689,6 +595742,7 @@ var init_openai_query = __esm(() => {
|
|
|
595689
595742
|
init_messages7();
|
|
595690
595743
|
init_debug();
|
|
595691
595744
|
init_client5();
|
|
595745
|
+
init_openai_adapter();
|
|
595692
595746
|
OPENAI_MODEL_MAP = {
|
|
595693
595747
|
"claude-opus-4-6-20260401": "gpt-5.4",
|
|
595694
595748
|
"claude-opus-4-5-20250918": "gpt-5.4",
|
|
@@ -679408,7 +679462,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
679408
679462
|
var call56 = async () => {
|
|
679409
679463
|
return {
|
|
679410
679464
|
type: "text",
|
|
679411
|
-
value: `${"2.1.88-rebuild"} (built ${"2026-04-
|
|
679465
|
+
value: `${"2.1.88-rebuild"} (built ${"2026-04-01T10:13:56.609Z"})`
|
|
679412
679466
|
};
|
|
679413
679467
|
}, version6, version_default;
|
|
679414
679468
|
var init_version = __esm(() => {
|
|
@@ -701021,6 +701075,7 @@ var init_sideQuery = __esm(() => {
|
|
|
701021
701075
|
init_fingerprint();
|
|
701022
701076
|
init_model();
|
|
701023
701077
|
init_providers();
|
|
701078
|
+
init_openai_adapter();
|
|
701024
701079
|
init_openai_query();
|
|
701025
701080
|
});
|
|
701026
701081
|
|
|
@@ -777413,4 +777468,4 @@ async function main2() {
|
|
|
777413
777468
|
}
|
|
777414
777469
|
main2();
|
|
777415
777470
|
|
|
777416
|
-
//# debugId=
|
|
777471
|
+
//# debugId=6C6F0DB434BD161F64756E2164756E21
|