@usabledev/usable-chat 1.218.3 → 1.218.4
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/cli.js +11 -1
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -151797,6 +151797,16 @@ function isSimpleTypeSchema(schema) {
|
|
|
151797
151797
|
return typeof schema.type === "string" && !schema.properties && !schema.items && !schema.required && !schema.additionalProperties;
|
|
151798
151798
|
}
|
|
151799
151799
|
function makeNullable(schema) {
|
|
151800
|
+
if (["$ref", "enum", "const", "allOf", "not", "if"].some((key2) => key2 in schema)) {
|
|
151801
|
+
const original2 = { ...schema };
|
|
151802
|
+
const description = original2.description;
|
|
151803
|
+
delete original2.description;
|
|
151804
|
+
delete original2.nullable;
|
|
151805
|
+
for (const key2 of Object.keys(schema)) delete schema[key2];
|
|
151806
|
+
schema.anyOf = [original2, { type: "null" }];
|
|
151807
|
+
if (typeof description === "string") schema.description = description;
|
|
151808
|
+
return;
|
|
151809
|
+
}
|
|
151800
151810
|
for (const key2 of ["anyOf", "oneOf"]) {
|
|
151801
151811
|
const union3 = schema[key2];
|
|
151802
151812
|
if (!Array.isArray(union3)) continue;
|
|
@@ -395187,7 +395197,7 @@ init_tui_select();
|
|
|
395187
395197
|
init_model_registry();
|
|
395188
395198
|
|
|
395189
395199
|
// package.json
|
|
395190
|
-
var version2 = "1.218.
|
|
395200
|
+
var version2 = "1.218.4";
|
|
395191
395201
|
|
|
395192
395202
|
// src/adapters/cli/model-catalog.ts
|
|
395193
395203
|
init_codex_auth();
|