@eigenpal/automations 0.20.48 → 0.20.49

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @eigenpal/automations
2
2
 
3
+ ## 0.20.49
4
+
5
+ ### Patch Changes
6
+
7
+ - 430b899: Agent definitions preserve explicitly unconstrained JSON schemas (`{}`), allowing existing agents to move to TypeScript without adding validation constraints.
8
+
3
9
  ## 0.20.48
4
10
 
5
11
  ### Minor Changes
package/README.md CHANGED
@@ -51,7 +51,8 @@ Full JSON Schema meta-validation is not performed by this package.
51
51
  Schemas may be Zod 4 schemas or raw JSON Schema objects. Raw schemas preserve
52
52
  existing `input-schema.json` and `output-schema.json` contracts, including file
53
53
  extensions, references, defaults, and annotations, for migration. Their inferred
54
- TypeScript value type is `unknown`. Both schema roots must have `type: 'object'`.
54
+ TypeScript value type is `unknown`. Schema roots must have `type: 'object'`, or be exactly `{}` to explicitly
55
+ declare no constraints.
55
56
  Absent schemas remain absent. Raw schemas must contain only JSON values.
56
57
 
57
58
  Zod is an authoring convenience for JSON Schema validation, not a runtime parser.
package/dist/compiler.js CHANGED
@@ -30,7 +30,7 @@ function compileSchema(schema, field) {
30
30
  })
31
31
  : schema;
32
32
  const parsed = copyJsonSchema(json);
33
- if (parsed.type !== 'object')
33
+ if (Object.keys(parsed).length !== 0 && parsed.type !== 'object')
34
34
  throw new Error('Root schema type must be object');
35
35
  return parsed;
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eigenpal/automations",
3
- "version": "0.20.48",
3
+ "version": "0.20.49",
4
4
  "description": "TypeScript definitions for EigenPal agents.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",