@usabledev/usable-chat 1.174.2 → 1.174.3

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/cli.js +10 -1
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -160161,6 +160161,12 @@ function adaptSchemaForGemini(schema) {
160161
160161
  return cloned;
160162
160162
  }
160163
160163
  function normalizeSchemaForGemini(schema) {
160164
+ if (schema.type === "array" && !isJsonSchemaRecord(schema.items)) {
160165
+ schema.items = { type: "string" };
160166
+ }
160167
+ if (schema.type === "object" && !isJsonSchemaRecord(schema.properties)) {
160168
+ schema.properties = {};
160169
+ }
160164
160170
  const properties = isJsonSchemaRecord(schema.properties) ? schema.properties : void 0;
160165
160171
  if (Array.isArray(schema.enum)) {
160166
160172
  schema.enum = schema.enum.map((enumValue) => String(enumValue));
@@ -199474,6 +199480,9 @@ function sanitizeSchemaForGemini(schema) {
199474
199480
  if (sanitized.type === "array" && !sanitized.items) {
199475
199481
  sanitized.items = { type: "string" };
199476
199482
  }
199483
+ if (sanitized.type === "object" && (!sanitized.properties || typeof sanitized.properties !== "object")) {
199484
+ sanitized.properties = {};
199485
+ }
199477
199486
  pruneRequiredFieldsForGemini(sanitized);
199478
199487
  return sanitized;
199479
199488
  }
@@ -309129,7 +309138,7 @@ init_tui_select();
309129
309138
  init_model_registry();
309130
309139
 
309131
309140
  // package.json
309132
- var version2 = "1.174.2";
309141
+ var version2 = "1.174.3";
309133
309142
 
309134
309143
  // src/adapters/cli/model-catalog.ts
309135
309144
  init_codex_auth();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usabledev/usable-chat",
3
- "version": "1.174.2",
3
+ "version": "1.174.3",
4
4
  "description": "usable-chat — terminal harness for usable-chat (headless + TUI)",
5
5
  "type": "module",
6
6
  "bin": {