@parcha/agentrun-dsl 0.1.0-beta.45 → 0.1.0-beta.47

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.
@@ -1,6 +1,8 @@
1
1
  import { createRequire } from "node:module";
2
2
  import { Compile } from "typebox/compile";
3
- const documentSchema = createRequire(import.meta.url)("../schema/workflow.schema.json");
3
+ // A named require lets deployment tracers retain the schema beside this package.
4
+ const require = createRequire(import.meta.url);
5
+ const documentSchema = require("../schema/workflow.schema.json");
4
6
  const fullValidator = Compile(documentSchema);
5
7
  const isRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
6
8
  // Diagnostics only: the full validator below remains the acceptance authority.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun-dsl",
3
- "version": "0.1.0-beta.45",
3
+ "version": "0.1.0-beta.47",
4
4
  "description": "Composable, typed workflows for agents",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",