@opencode/codemode 0.0.0-dev-232 → 0.0.0-dev-235

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.
@@ -65,9 +65,10 @@ const docTags = (schema) => {
65
65
  tags.push(`@format ${schema.format}`);
66
66
  if (schema.type === "integer")
67
67
  tags.push("@integer");
68
- if (typeof schema.minimum === "number")
68
+ const integer = schema.type === "integer";
69
+ if (typeof schema.minimum === "number" && !(integer && schema.minimum === Number.MIN_SAFE_INTEGER))
69
70
  tags.push(`@minimum ${schema.minimum}`);
70
- if (typeof schema.maximum === "number")
71
+ if (typeof schema.maximum === "number" && !(integer && schema.maximum === Number.MAX_SAFE_INTEGER))
71
72
  tags.push(`@maximum ${schema.maximum}`);
72
73
  if (typeof schema.exclusiveMinimum === "number")
73
74
  tags.push(`@exclusiveMinimum ${schema.exclusiveMinimum}`);
@@ -148,7 +149,10 @@ const renderSchema = (schema, ctx, depth = 0, seen = new Set()) => {
148
149
  return renderLiteral(schema.const);
149
150
  if (schema.enum)
150
151
  return schema.enum.map(renderLiteral).join(" | ");
151
- const alternatives = schema.anyOf ?? schema.oneOf;
152
+ const listed = schema.anyOf ?? schema.oneOf;
153
+ const alternatives = listed?.some((item) => item.type === "number")
154
+ ? listed.filter((item) => !effectNumberSentinel(item))
155
+ : listed;
152
156
  if (alternatives) {
153
157
  if (alternatives.some((item) => item.type === "number") &&
154
158
  alternatives.every((item) => item.type === "number" || effectNumberSentinel(item)))
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/codemode",
4
- "version": "0.0.0-dev-232",
4
+ "version": "0.0.0-dev-235",
5
5
  "description": "Effect-native confined code execution over schema-described tools",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "acorn": "8.15.0",
34
- "effect": "4.0.1"
34
+ "effect": "4.0.6"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@tsconfig/bun": "1.0.9",