@boardwalk-labs/runner 0.3.0-alpha.1 → 0.3.1

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.
@@ -33,7 +33,7 @@ import { randomBytes } from "node:crypto";
33
33
  import { tmpdir } from "node:os";
34
34
  import { join } from "node:path";
35
35
  import { rm } from "node:fs/promises";
36
- import { Ajv } from "ajv";
36
+ import { Ajv2020 } from "ajv/dist/2020.js";
37
37
  import { clientToHostRequests, clientToHostNotifications, rpcFrameSchema, } from "@boardwalk-labs/workflow/runtime";
38
38
  import { AppError, ErrorCode, createLogger, errorCodeOf } from "./support/index.js";
39
39
  import { RunAbortedError } from "./run_abort.js";
@@ -544,13 +544,15 @@ export function protocolErrorOf(err) {
544
544
  return { code, message, ...(Object.keys(dataParts).length > 0 ? { data: dataParts } : {}) };
545
545
  }
546
546
  /** Compile the output-schema validator: structural (formats off — same honesty as the revive
547
- * pass), lax about unknown keywords (`contentEncoding` etc.). A schema that will not compile is
548
- * a platform bug in the deriver warned and skipped (fail-soft), never a run failure. */
547
+ * pass), lax about unknown keywords (`contentEncoding` etc.), and in the DERIVER'S DIALECT
548
+ * JSON Schema draft 2020-12 (Ajv2020): a draft-07 Ajv ignores `prefixItems` and applies a
549
+ * tuple's `items: false` to every element, failing ALL tuples. A schema that will not compile
550
+ * is a platform bug in the deriver — warned and skipped (fail-soft), never a run failure. */
549
551
  function compileOutputValidator(schema) {
550
552
  if (schema === null)
551
553
  return null;
552
554
  try {
553
- const ajv = new Ajv({ strict: false, validateFormats: false });
555
+ const ajv = new Ajv2020({ strict: false, validateFormats: false });
554
556
  return ajv.compile(schema);
555
557
  }
556
558
  catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boardwalk-labs/runner",
3
- "version": "0.3.0-alpha.1",
3
+ "version": "0.3.1",
4
4
  "description": "Boardwalk self-hosted runner: execute cloud-scheduled runs on your own machines. Currently: the canonical runner contract types.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -53,8 +53,8 @@
53
53
  "prebuild": "prebuildify --napi --strip -t 24.0.0"
54
54
  },
55
55
  "dependencies": {
56
- "@boardwalk-labs/engine": "0.3.0-alpha.2",
57
- "@boardwalk-labs/workflow": "0.3.0-alpha.7",
56
+ "@boardwalk-labs/engine": "0.3.0",
57
+ "@boardwalk-labs/workflow": "0.3.0",
58
58
  "@modelcontextprotocol/sdk": "^1.29.0",
59
59
  "ajv": "^8.20.0",
60
60
  "node-gyp-build": "^4.8.4",