@xiaohhhh1/canvas-agent 0.4.70 → 0.4.71

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.
@@ -77,7 +77,7 @@ function boundedList(maxItems, maxLength) {
77
77
  return { type: "array", minItems: 0, maxItems, items: boundedText(maxLength) };
78
78
  }
79
79
  function boundedEnumList(values, maxItems) {
80
- return { type: "array", minItems: 0, maxItems, uniqueItems: true, items: { type: "string", enum: [...values] } };
80
+ return { type: "array", minItems: 0, maxItems, items: { type: "string", enum: [...values] } };
81
81
  }
82
82
  function productProfileSchema(contractVersion) {
83
83
  const legacy = {
@@ -69,6 +69,8 @@ export function assertStrictResponseSchema(schemaValue, path = "$") {
69
69
  const schema = recordOf(schemaValue);
70
70
  if (!schema)
71
71
  throw new Error(`Strict response schema at ${path} must be an object`);
72
+ if ("uniqueItems" in schema)
73
+ throw new Error(`Strict response schema at ${path} must not use unsupported uniqueItems`);
72
74
  if (schema.type === "object") {
73
75
  const properties = recordOf(schema.properties);
74
76
  if (!properties)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiaohhhh1/canvas-agent",
3
- "version": "0.4.70",
3
+ "version": "0.4.71",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",