@strand-js/core 0.1.7 → 0.1.8

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/index.js CHANGED
@@ -467,6 +467,7 @@ function toolToJsonSchema(tool2) {
467
467
  const schema = (0, import_zod_to_json_schema.zodToJsonSchema)(tool2.parameters, { target: "openApi3" });
468
468
  const inner = schema;
469
469
  delete inner["$schema"];
470
+ if (!inner["type"]) inner["type"] = "object";
470
471
  return inner;
471
472
  }
472
473
 
package/dist/index.mjs CHANGED
@@ -429,6 +429,7 @@ function toolToJsonSchema(tool2) {
429
429
  const schema = zodToJsonSchema(tool2.parameters, { target: "openApi3" });
430
430
  const inner = schema;
431
431
  delete inner["$schema"];
432
+ if (!inner["type"]) inner["type"] = "object";
432
433
  return inner;
433
434
  }
434
435
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strand-js/core",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "license": "MIT",
5
5
  "description": "Provider-agnostic AI state management — core types and client",
6
6
  "main": "./dist/index.js",