claude-code-openai 0.1.10 → 0.1.12
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 +77 -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:24:01.092Z",
|
|
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:24:01.092Z").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,36 @@ 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
|
+
"format"
|
|
595145
|
+
];
|
|
595146
|
+
});
|
|
595093
595147
|
|
|
595094
595148
|
// src/services/api/openai-query.ts
|
|
595095
595149
|
var exports_openai_query = {};
|
|
@@ -595689,6 +595743,7 @@ var init_openai_query = __esm(() => {
|
|
|
595689
595743
|
init_messages7();
|
|
595690
595744
|
init_debug();
|
|
595691
595745
|
init_client5();
|
|
595746
|
+
init_openai_adapter();
|
|
595692
595747
|
OPENAI_MODEL_MAP = {
|
|
595693
595748
|
"claude-opus-4-6-20260401": "gpt-5.4",
|
|
595694
595749
|
"claude-opus-4-5-20250918": "gpt-5.4",
|
|
@@ -679408,7 +679463,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
679408
679463
|
var call56 = async () => {
|
|
679409
679464
|
return {
|
|
679410
679465
|
type: "text",
|
|
679411
|
-
value: `${"2.1.88-rebuild"} (built ${"2026-04-
|
|
679466
|
+
value: `${"2.1.88-rebuild"} (built ${"2026-04-01T10:24:01.092Z"})`
|
|
679412
679467
|
};
|
|
679413
679468
|
}, version6, version_default;
|
|
679414
679469
|
var init_version = __esm(() => {
|
|
@@ -701021,6 +701076,7 @@ var init_sideQuery = __esm(() => {
|
|
|
701021
701076
|
init_fingerprint();
|
|
701022
701077
|
init_model();
|
|
701023
701078
|
init_providers();
|
|
701079
|
+
init_openai_adapter();
|
|
701024
701080
|
init_openai_query();
|
|
701025
701081
|
});
|
|
701026
701082
|
|
|
@@ -777413,4 +777469,4 @@ async function main2() {
|
|
|
777413
777469
|
}
|
|
777414
777470
|
main2();
|
|
777415
777471
|
|
|
777416
|
-
//# debugId=
|
|
777472
|
+
//# debugId=699B3904C01ABC6A64756E2164756E21
|